@@ -133,7 +133,7 @@ jobs:
133133 # Determine the correct image tag based on trigger context
134134 # For PRs: pr-{number}-{sha}, For branches: {sanitized-branch}-{sha}
135135 - name : Determine image tag
136- id : image
136+ id : determine-tag
137137 env :
138138 EVENT : ${{ github.event.workflow_run.event }}
139139 REF : ${{ github.event.workflow_run.head_branch }}
@@ -199,7 +199,7 @@ jobs:
199199 max_attempts : 3
200200 retry_wait_seconds : 10
201201 command : |
202- IMAGE_NAME="ghcr.io/${{ github.repository_owner }}/charon:${{ steps.image .outputs.tag }}"
202+ IMAGE_NAME="ghcr.io/${{ github.repository_owner }}/charon:${{ steps.determine-tag .outputs.tag }}"
203203 echo "Pulling image: $IMAGE_NAME"
204204 docker pull "$IMAGE_NAME"
205205 docker tag "$IMAGE_NAME" charon:local
@@ -211,12 +211,12 @@ jobs:
211211 if : steps.pull_image.outcome == 'failure'
212212 env :
213213 GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
214- SHA : ${{ steps.image .outputs.sha }}
214+ SHA : ${{ steps.determine-tag .outputs.sha }}
215215 run : |
216216 echo "⚠️ Registry pull failed, falling back to artifact..."
217217
218218 # Determine artifact name based on source type
219- if [[ "${{ steps.image .outputs.source_type }}" == "pr" ]]; then
219+ if [[ "${{ steps.determine-tag .outputs.source_type }}" == "pr" ]]; then
220220 PR_NUM=$(echo '${{ toJson(github.event.workflow_run.pull_requests) }}' | jq -r '.[0].number')
221221 ARTIFACT_NAME="pr-image-${PR_NUM}"
222222 else
@@ -240,7 +240,7 @@ jobs:
240240 # Validate image freshness by checking SHA label
241241 - name : Validate image SHA
242242 env :
243- SHA : ${{ steps.image .outputs.sha }}
243+ SHA : ${{ steps.determine-tag .outputs.sha }}
244244 run : |
245245 LABEL_SHA=$(docker inspect charon:local --format '{{index .Config.Labels "org.opencontainers.image.revision"}}' | cut -c1-7)
246246 echo "Expected SHA: $SHA"
0 commit comments