Update CI

Signed-off-by: Khanh Ngo <khanh.ngo@taxfix.de>
This commit is contained in:
Khanh Ngo 2021-10-31 14:34:35 +01:00
parent c49df09ac8
commit 1662a812ba

View File

@ -25,9 +25,6 @@ jobs:
type=semver,pattern={{major}}.{{minor}} type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}} type=semver,pattern={{major}}
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx - name: Set up Docker Buildx
id: buildx id: buildx
uses: docker/setup-buildx-action@v1 uses: docker/setup-buildx-action@v1
@ -42,7 +39,8 @@ jobs:
uses: docker/build-push-action@v2 uses: docker/build-push-action@v2
if: github.ref == 'refs/heads/master' if: github.ref == 'refs/heads/master'
with: with:
context: ./docker context: ./
file: ./docker/Dockerfile
push: true push: true
tags: ngoduykhanh/powerdns-admin:latest tags: ngoduykhanh/powerdns-admin:latest
@ -50,6 +48,7 @@ jobs:
uses: docker/build-push-action@v2 uses: docker/build-push-action@v2
if: ${{ github.event_name == 'create' && github.event.ref_type == 'tag' }} if: ${{ github.event_name == 'create' && github.event.ref_type == 'tag' }}
with: with:
context: ./docker context: ./
file: ./docker/Dockerfile
push: true push: true
tags: ${{ steps.meta.outputs.tags }} tags: ${{ steps.meta.outputs.tags }}