add docker action to maven workflow
This commit is contained in:
20
.github/workflows/maven.yml
vendored
20
.github/workflows/maven.yml
vendored
@@ -62,3 +62,23 @@ jobs:
|
||||
files: ./fizz-gateway-community-${{ steps.releaseVersion.outputs.substring }}.zip
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
- name: Set up QEMU
|
||||
if: startsWith(github.ref, 'refs/tags/')
|
||||
uses: docker/setup-qemu-action@v1
|
||||
- name: Set up Docker Buildx
|
||||
if: startsWith(github.ref, 'refs/tags/')
|
||||
uses: docker/setup-buildx-action@v1
|
||||
- name: Login to DockerHub
|
||||
if: startsWith(github.ref, 'refs/tags/')
|
||||
uses: docker/login-action@v1
|
||||
with:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
- name: Build and push
|
||||
if: startsWith(github.ref, 'refs/tags/')
|
||||
uses: docker/build-push-action@v2
|
||||
with:
|
||||
file: ./fizz-bootstrap/Dockerfile
|
||||
context: .
|
||||
push: true
|
||||
tags: fizzgate/fizz-gateway-community:${{ github.ref }}
|
||||
|
||||
Reference in New Issue
Block a user