Skip to content

Commit

Permalink
🤖 Disable push from Earthly for master (#1246)
Browse files Browse the repository at this point in the history
Signed-off-by: mudler <[email protected]>
  • Loading branch information
mudler committed Apr 3, 2023
1 parent f9f31d2 commit b18206f
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,9 @@ jobs:
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
env:
FLAVOR: ${{ matrix.flavor }}
IMAGE: "quay.io/kairos/framework"
TAG: "master_${{ matrix.flavor }}"
COSIGN_YES: true
run: |
# Configure earthly to use the docker mirror in CI
# https://docs.earthly.dev/ci-integration/pull-through-cache#configuring-earthly-to-use-the-cache
Expand All @@ -196,14 +199,7 @@ jobs:
insecure = true
http = true
EOF
earthly --push +build-framework-image --FLAVOR=${FLAVOR} --VERSION=master
- name: Push to quay
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
env:
IMAGE: "quay.io/kairos/framework"
TAG: "master_${{ matrix.flavor }}"
COSIGN_YES: true
run: |
earthly +build-framework-image --FLAVOR=${FLAVOR} --VERSION=master
docker push "$IMAGE:$TAG" # Otherwise .RepoDigests will be empty for some reason
cosign sign $(docker image inspect --format='{{index .RepoDigests 0}}' "$IMAGE:$TAG")
- name: Build framework image 🔧
Expand Down

0 comments on commit b18206f

Please sign in to comment.