Hotfix: ci workflow

This commit is contained in:
Quentin McGaw (desktop)
2021-10-06 18:54:44 +00:00
parent 50febb41ff
commit caeca18ed7

View File

@@ -29,7 +29,8 @@ on:
jobs: jobs:
verify: verify:
if: github.event.pull_request.head.repo.full_name == github.repository # Only run if it's a push event or if it's a PR from this repository
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository
runs-on: ubuntu-latest runs-on: ubuntu-latest
env: env:
DOCKER_BUILDKIT: "1" DOCKER_BUILDKIT: "1"
@@ -68,7 +69,8 @@ jobs:
image: final-image image: final-image
publish: publish:
if: github.event.pull_request.head.repo.full_name == github.repository # Only run if it's a push event or if it's a PR from this repository
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository
needs: [verify] needs: [verify]
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
@@ -99,7 +101,7 @@ jobs:
fi fi
- name: Build and push final image - name: Build and push final image
uses: docker/build-push-action@v2.7.0 uses: docker/build-push-action@v2.6.1
with: with:
platforms: ${{ steps.vars.outputs.platforms }} platforms: ${{ steps.vars.outputs.platforms }}
build-args: | build-args: |