File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -39,15 +39,17 @@ jobs:
3939 name : Image Tag
4040 outputs :
4141 image_tag : ${{ steps.resolve.outputs.image_tag }}
42+ ref : ${{ steps.parse.outputs.ref }}
4243
4344 steps :
4445 - name : Parse Arguments
46+ id : parse
4547 run : |
4648 set -euo pipefail
4749
4850 if [[ "${{ inputs.origin }}" == "pull_request" ]]; then
4951 REF="refs/pull/${{ inputs.number }}/merge"
50- BASE_TAG="pr-${{inputs.number}}-"
52+ BASE_TAG="pr-${{ inputs.number }}-"
5153 elif [[ "${{ inputs.origin }}" == "issue" ]]; then
5254 BRANCH=$(printf "%s" '${{ inputs.args }}' | jq -r ".[0]")
5355
6365 BASE_TAG="ci-${BRANCH}-"
6466 fi
6567
66- echo "REF=$REF" >> $GITHUB_ENV
6768 echo "BASE_TAG=$BASE_TAG" >> $GITHUB_ENV
6869
70+ echo "ref=$REF" >> "$GITHUB_OUTPUT"
71+
6972 - name : Login to Registry
7073 uses : docker/login-action@v3
7174 with :
@@ -135,6 +138,7 @@ jobs:
135138 latest=false
136139 tags : |
137140 type=raw,value=${{ needs.resolve-tag.outputs.image_tag }}
141+ ref : ${{ needs.resolve-tag.outputs.ref }}
138142 secrets :
139143 GH_PCKG_TOKEN : ${{ secrets.GH_PCKG_TOKEN }}
140144
You can’t perform that action at this time.
0 commit comments