File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5353
5454 echo "version=$IMAGE_VERSION" >> "$GITHUB_OUTPUT"
5555 echo "rollout_tag=$ROLLOUT_TAG" >> "$GITHUB_OUTPUT"
56+ echo "image_name_lower=$(echo '${{ env.IMAGE_NAME }}' | tr '[:upper:]' '[:lower:]')" >> "$GITHUB_OUTPUT"
5657
5758 # ── Autenticación ───────────────────────────────────────────────────────
5859 - name : Autenticar en GCP via OIDC
@@ -101,15 +102,14 @@ jobs:
101102 push : true
102103 tags : |
103104 ${{ vars.GCP_ARTIFACT_REGISTRY }}/${{ vars.GCP_CLOUD_RUN_SERVICE }}:${{ steps.version.outputs.version }}
104- ghcr.io/${{ env.IMAGE_NAME }}:${{ steps.version.outputs.version }}
105+ ghcr.io/${{ steps.version.outputs.image_name_lower }}:${{ steps.version.outputs.version }}
105106
106107 # ── Supply chain security ───────────────────────────────────────────────
107108 - name : Build immutable image reference
108109 if : github.event_name != 'workflow_dispatch'
109110 id : image_ref
110111 run : |
111- IMAGE_NAME_LOWER=$(echo "${{ env.IMAGE_NAME }}" | tr '[:upper:]' '[:lower:]')
112- IMAGE_REF="ghcr.io/${IMAGE_NAME_LOWER}@${{ steps.build_and_push.outputs.digest }}"
112+ IMAGE_REF="ghcr.io/${{ steps.version.outputs.image_name_lower }}@${{ steps.build_and_push.outputs.digest }}"
113113 echo "IMAGE_REF=$IMAGE_REF" >> "$GITHUB_ENV"
114114 echo "image_ref=$IMAGE_REF" >> "$GITHUB_OUTPUT"
115115
You can’t perform that action at this time.
0 commit comments