Skip to content

Commit

Permalink
added to github env
Browse files Browse the repository at this point in the history
  • Loading branch information
oliver-z-luo committed Nov 26, 2023
1 parent b35be0f commit f96ed95
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -199,13 +199,13 @@ jobs:
run: |
IMAGE="${{ inputs.image }}:${{ github.ref_name }}"
if docker manifest inspect "$IMAGE" &> /dev/null ; then
IMAGE_EXISTS=true
IMAGE_EXISTS=true >> $GITHUB_ENV
echo "Image found in ICR: ${IMAGE}"
else
IMAGE_EXISTS=false
IMAGE_EXISTS=false >> $GITHUB_ENV
echo "Image not found in ICR: ${IMAGE}"
fi
- name: Skip build and push?
run: echo "Image is found on ICR, skipping build and push"
if: env.IMAGE_EXISTS=='true'
Expand Down Expand Up @@ -233,7 +233,7 @@ jobs:
SN_GITHUB_NPM_TOKEN=${{ secrets.NPM_TOKEN }}
SN_GITHUB_NPM_REGISTRY=https://npm.pkg.github.com
if: env.IMAGE_EXISTS == 'false'

- uses: sigstore/cosign-installer@main
if: ${{ inputs.push }}

Expand Down

0 comments on commit f96ed95

Please sign in to comment.