Update push-docker.yml

This commit is contained in:
Anthony Stirling 2023-02-05 23:33:43 +00:00 committed by GitHub
parent 44c217f364
commit 7e9fd0f4da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -55,19 +55,19 @@ jobs:
- name: Setup buildx
if: steps.checkIdExists.outcome == 'success'
if: steps.checkIdExists.outcome != 'failure'
run: |
docker buildx create --name mybuilder
docker buildx use mybuilder
- name: Build and push versioned amd64 and v8
if: github.ref == 'refs/heads/main' && steps.checkIdExists.outcome == 'success'
if: github.ref == 'refs/heads/main' && steps.checkIdExists.outcome != 'failure'
run: |
docker buildx build --platform="linux/amd64,linux/arm64/v8" --push --tag "frooodle/s-pdf:${{ steps.versionNumber.outputs.versionNumber }}" .
- name: Build and push latest amd64 and v8
if: github.ref == 'refs/heads/master' && steps.checkIdExists.outcome == 'success'
if: github.ref == 'refs/heads/master' && steps.checkIdExists.outcome != 'failure'
run: |
docker buildx build --platform="linux/amd64,linux/arm64/v8" --push --tag "frooodle/s-pdf:latest" .