docker release to latest and version tag
This commit is contained in:
parent
ac87019549
commit
34d0759e0d
1 changed files with 12 additions and 4 deletions
16
.github/workflows/release-docker.yml
vendored
16
.github/workflows/release-docker.yml
vendored
|
@ -17,12 +17,20 @@ jobs:
|
||||||
java-version: '1.13'
|
java-version: '1.13'
|
||||||
- name: Build release
|
- name: Build release
|
||||||
run: ./mvnw -B clean package -Pproduction
|
run: ./mvnw -B clean package -Pproduction
|
||||||
- name: Build image
|
- name: Extract version
|
||||||
run: ./mvnw -B dockerfile:build -Pproduction -pl acrarium
|
id: version
|
||||||
- name: Publish to hub
|
run: echo ::set-output name=value::$(./mvnw org.apache.maven.plugins:maven-help-plugin:2.1.1:evaluate -Dexpression=project.version | grep '^[0-9]')
|
||||||
|
- name: Publish to hub (latest)
|
||||||
uses: elgohr/Publish-Docker-Github-Action@master
|
uses: elgohr/Publish-Docker-Github-Action@master
|
||||||
with:
|
with:
|
||||||
name: f43nd1r/acrarium
|
name: f43nd1r/acrarium:latest
|
||||||
|
username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
|
workdir: acrarium
|
||||||
|
- name: Publish to hub (version tag)
|
||||||
|
uses: elgohr/Publish-Docker-Github-Action@master
|
||||||
|
with:
|
||||||
|
name: f43nd1r/acrarium:${{ steps.version.outputs.value }}
|
||||||
username: ${{ secrets.DOCKER_USERNAME }}
|
username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
workdir: acrarium
|
workdir: acrarium
|
Loading…
Reference in a new issue