Skip to content

Commit 5bbea80

Browse files
committed
correcciones
1 parent 12cfb37 commit 5bbea80

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/despliega-cloud-run.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ jobs:
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

0 commit comments

Comments
 (0)