Skip publishing Docker manifest when not main/dev

This commit is contained in:
Tom Foster 2024-04-22 13:39:55 +01:00 committed by GitHub
parent 5231ba08d8
commit 7b27ef3eb5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -288,7 +288,7 @@ jobs:
name: Create and Push Docker Manifest name: Create and Push Docker Manifest
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: build-oci needs: build-oci
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/dev'
steps: steps:
- name: Download OCI Images Artifacts - name: Download OCI Images Artifacts
uses: actions/download-artifact@v4 uses: actions/download-artifact@v4
@ -351,4 +351,4 @@ jobs:
docker manifest create $REPO_DOCKER:$BRANCH_TAG \ docker manifest create $REPO_DOCKER:$BRANCH_TAG \
--amend conduwuit:${{ github.sha }}-x86_64-jemalloc \ --amend conduwuit:${{ github.sha }}-x86_64-jemalloc \
--amend conduwuit:${{ github.sha }}-aarch64-jemalloc --amend conduwuit:${{ github.sha }}-aarch64-jemalloc
docker manifest push $REPO_DOCKER:$BRANCH_TAG docker manifest push $REPO_DOCKER:$BRANCH_TAG