diff --git a/.github/workflows/services-base.yml b/.github/workflows/services-base.yml index 24ff08172..59b8fc555 100644 --- a/.github/workflows/services-base.yml +++ b/.github/workflows/services-base.yml @@ -10,11 +10,9 @@ on: - .github/workflows/base-image.yml - docker/base.Dockerfile - - env: REGISTRY: ghcr.io - IMAGE_NAME: blockscout/visualizer + IMAGE_NAME: blockscout/services-base jobs: check_tag: @@ -66,13 +64,12 @@ jobs: - name: Check image tag exists id: check_existence env: -# TAG: ${{ steps.get_image_tag.outputs.tag }} - TAG: v0.2.0 + TAG: ${{ steps.get_image_tag.outputs.tag }} run: | TOKEN=$(echo ${{ secrets.GITHUB_TOKEN }} | base64) EXISTING_TAGS=$(curl -H "Authorization: Bearer ${TOKEN}" https://ghcr.io/v2/${IMAGE_NAME}/tags/list) - echo "a=${EXISTING_TAGS}" + echo "Existing tags: ${EXISTING_TAGS}" if echo "${EXISTING_TAGS}" | jq -e "if has(\"tags\") then .tags else [] end | map(select(. == \"$TAG\")) | length > 0" > /dev/null; then echo "There is already a pushed image with ${TAG} as tag. Skipping." @@ -92,7 +89,7 @@ jobs: uses: actions/checkout@v4 - name: Login to GitHub Container Registry - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: registry: ${{ env.REGISTRY }} username: ${{ github.actor }}