Skip to content

Commit

Permalink
ci: fix tag_exists condition
Browse files Browse the repository at this point in the history
  • Loading branch information
labramusiq committed Oct 10, 2024
1 parent 9be6da4 commit eb67ec9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -132,23 +132,23 @@ jobs:
fi
- name: Tag and Push Docker image
if: ${{ env.TAG_EXISTS }} == 'false'
if: ${{ env.TAG_EXISTS == 'false' }}
run: |
docker tag ${{ matrix.component.image-name }}:${{ env.TAG }} syntioinc/dataphos-${{ matrix.component.image-name }}:${{ env.TAG }}
docker push syntioinc/dataphos-${{ matrix.component.image-name }}:${{ env.TAG }}
- name: Install cosign
if: ${{ env.TAG_EXISTS }} == 'false'
if: ${{ env.TAG_EXISTS == 'false' }}
uses: sigstore/[email protected]

- name: Sign the Docker image
if: ${{ env.TAG_EXISTS }} == 'false'
if: ${{ env.TAG_EXISTS == 'false' }}
run: |
digest=$(docker inspect --format='{{index .RepoDigests 0}}' syntioinc/dataphos-${{ matrix.component.image-name }}:${{ env.TAG }})
cosign sign --yes "$digest"
- name: Image already exists
if: ${{ env.TAG_EXISTS }} == 'true'
if: ${{ env.TAG_EXISTS == 'true' }}
run: echo "Docker image syntioinc/dataphos-${{ matrix.component.image-name }}:${{ env.TAG }} already exists. Skipping push."

release-please:
Expand Down

0 comments on commit eb67ec9

Please sign in to comment.