Merge branch 'master' of github.com:bshp/firefly #73
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Docker CI | |
on: | |
workflow_dispatch: | |
push: | |
branches: [ master ] | |
paths-ignore: | |
- '.gitignore' | |
- 'README.md' | |
schedule: | |
- cron: '15 1 * * 0' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Configure Docker | |
env: | |
DOCKER_USER: ${{secrets.DOCKER_USER}} | |
DOCKER_TOKEN: ${{secrets.DOCKER_TOKEN}} | |
run: | | |
docker login -u $DOCKER_USER -p $DOCKER_TOKEN | |
- name: Build v9.8 | |
run: docker build . --pull --tag bshp/firefly:v9.8 --build-arg VERSION=22.04 --build-arg TOMCAT_VERSION=9 --build-arg JAVA_VERSION=8 --no-cache | |
- name: Push v9.8 | |
run: | | |
docker push bshp/firefly:v9.8 | |
- name: Build v9.11 | |
run: docker build . --pull --tag bshp/firefly:latest --build-arg VERSION=22.04 --build-arg TOMCAT_VERSION=9 --no-cache | |
- name: Push v9.11 | |
run: | | |
docker tag bshp/firefly:latest bshp/firefly:v9.11 | |
docker push bshp/firefly:latest | |
docker push bshp/firefly:v9.11 | |
- name: Build v10.17 | |
run: docker build . --pull --tag bshp/firefly:v10.17 --build-arg VERSION=22.04 --build-arg TOMCAT_VERSION=10 --no-cache | |
- name: Push v10.17 | |
run: | | |
docker push bshp/firefly:v10.17 |