Skip to content

Commit 93be533

Browse files
committed
fix: name vars and re-order
1 parent 43e5a3f commit 93be533

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/build_and_push.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -194,10 +194,6 @@ jobs:
194194
run: |
195195
docker load -i final_image.tar
196196
197-
- name: 🔑 Login to Quay.io
198-
run: |
199-
docker login quay.io -u "${{ secrets.QUAY_USER }}" -p "${{ secrets.QUAY_PASSWORD }}"
200-
201197
- name: 🎯 Determinar la Imagen a Desplegar
202198
id: determine_image
203199
run: |
@@ -215,6 +211,10 @@ jobs:
215211
216212
echo "FINAL_TAG=$FINAL_TAG" >> $GITHUB_ENV
217213
214+
- name: 🔑 Login to Quay.io
215+
run: |
216+
docker login quay.io -u "${{ secrets.QUAY_USER }}" -p "${{ secrets.QUAY_PASSWORD }}"
217+
218218
- name: 🚀 Push Imagen Final a Quay.io
219219
run: |
220220
docker push $FINAL_TAG
@@ -229,5 +229,5 @@ jobs:
229229
COSIGN_PRIVATE_KEY: ${{ secrets.COSIGN_PRIVATE_KEY }}
230230
run: |
231231
printf '%s' "$COSIGN_PRIVATE_KEY" > cosign.key
232-
cosign sign --key cosign.key ${{ env.FULL_IMAGE }}
232+
cosign sign --key cosign.key $FINAL_TAG
233233
shred -u cosign.key || rm -f cosign.key

0 commit comments

Comments
 (0)