3434 }}
3535 runner-arm64 : ${{ steps.runner-labels.outputs.runner-arm64 }}
3636 runner-amd64 : ${{ steps.runner-labels.outputs.runner-amd64 }}
37+ checked-out-sha : ${{ steps.checkout-sha.outputs.checked-out-sha }}
3738 version-tag : ${{ steps.version-info.outputs.version-tag }}
38- docker-tag-base : ${{ steps.docker-tag.outputs.docker-tag-base }}
3939 steps :
4040 - name : Get PR Labels
4141 id : pr-labels
@@ -68,58 +68,25 @@ jobs:
6868 fetch-depth : 0
6969 ref : ${{ inputs.git-ref || github.sha }}
7070
71+ - name : Resolve checked out SHA
72+ id : checkout-sha
73+ shell : bash
74+ run : echo "checked-out-sha=$(git rev-parse HEAD)" | tee -a "$GITHUB_OUTPUT"
75+
7176 - name : Version Info
7277 id : version-info
7378 run : |
7479 pkg_version=$(jq -r '.version' ./package.json)
7580 version_tag="${pkg_version}-dev"
7681 echo "version-tag=${version_tag}" | tee -a "$GITHUB_OUTPUT"
7782
78- - name : Compute Docker tag
79- id : docker-tag
80- shell : bash
81- env :
82- GITHUB_EVENT_NAME : ${{ github.event_name }}
83- GITHUB_REF_NAME : ${{ github.ref_name }}
84- GITHUB_REF_TYPE : ${{ github.ref_type }}
85- PR_NUMBER : ${{ github.event.pull_request.number }}
86- run : |
87- short_sha="$(git rev-parse --short=7 HEAD)"
88-
89- case "${GITHUB_EVENT_NAME}" in
90- pull_request)
91- docker_tag="pr-${PR_NUMBER}-${short_sha}"
92- ;;
93- schedule)
94- docker_tag="nightly-$(date +%Y%m%d)"
95- ;;
96- workflow_dispatch)
97- docker_tag="manual-${short_sha}"
98- ;;
99- push)
100- if [[ "${GITHUB_REF_TYPE}" == "tag" ]]; then
101- docker_tag="${GITHUB_REF_NAME}"
102- elif [[ -n "${GITHUB_REF_NAME}" ]]; then
103- ref_name="$(echo "${GITHUB_REF_NAME}" | tr '[:upper:]' '[:lower:]' | tr '/' '-')"
104- docker_tag="${ref_name}-${short_sha}"
105- else
106- docker_tag="sha-${short_sha}"
107- fi
108- ;;
109- *)
110- docker_tag="sha-${short_sha}"
111- ;;
112- esac
113-
114- echo "docker-tag-base=${docker_tag}" | tee -a "$GITHUB_OUTPUT"
115-
11683 docker-core :
11784 needs : [init]
11885 if : ${{ needs.init.outputs.should-run == 'true' }}
11986 permissions :
12087 contents : read
12188 id-token : write
122- uses : smartcontractkit/.github/.github/workflows/reusable-docker-build-publish.yml@f4ff50d0f4713ed7b247dbd8a58316484907f958 # 2026-01-13
89+ uses : smartcontractkit/.github/.github/workflows/reusable-docker-build-publish.yml@d85d3577d56c9ecd31cb96694bb5b677b133bd14 # temporary until .github#1479 merges
12390 with :
12491 aws-ecr-name : chainlink
12592 aws-region-ecr : us-west-2
@@ -128,11 +95,10 @@ jobs:
12895 docker-build-context : .
12996 docker-build-args : |
13097 CHAINLINK_USER=chainlink
131- COMMIT_SHA=${{ github.sha }}
132- DOCKER_TAG=${{ needs.init.outputs.docker-tag-base }}
98+ COMMIT_SHA=${{ needs.init.outputs.checked-out-sha }}
13399 VERSION_TAG=${{ needs.init.outputs.version-tag }}
134100 docker-manifest-sign : true
135- git-sha : ${{ inputs.git-ref || github. sha }}
101+ git-sha : ${{ needs.init.outputs.checked-out- sha }}
136102 github-event-name : ${{ github.event_name }}
137103 github-ref-name : ${{ github.ref_name }}
138104 github-ref-type : ${{ github.ref_type}}
@@ -152,7 +118,7 @@ jobs:
152118 permissions :
153119 contents : read
154120 id-token : write
155- uses : smartcontractkit/.github/.github/workflows/reusable-docker-build-publish.yml@f4ff50d0f4713ed7b247dbd8a58316484907f958 # 2026-01-13
121+ uses : smartcontractkit/.github/.github/workflows/reusable-docker-build-publish.yml@d85d3577d56c9ecd31cb96694bb5b677b133bd14 # temporary until .github#1479 merges
156122 with :
157123 aws-ecr-name : chainlink
158124 aws-region-ecr : us-west-2
@@ -161,13 +127,12 @@ jobs:
161127 docker-build-context : .
162128 docker-build-args : |
163129 CHAINLINK_USER=chainlink
164- COMMIT_SHA=${{ github.sha }}
165- DOCKER_TAG=${{ needs.init.outputs.docker-tag-base }}-plugins
130+ COMMIT_SHA=${{ needs.init.outputs.checked-out-sha }}
166131 VERSION_TAG=${{ needs.init.outputs.version-tag }}
167132 CL_INSTALL_PRIVATE_PLUGINS=true
168133 docker-manifest-sign : true
169134 docker-tag-custom-suffix : " -plugins"
170- git-sha : ${{ inputs.git-ref || github. sha }}
135+ git-sha : ${{ needs.init.outputs.checked-out- sha }}
171136 github-event-name : ${{ github.event_name }}
172137 github-ref-name : ${{ github.ref_name }}
173138 github-ref-type : ${{ github.ref_type}}
@@ -187,7 +152,7 @@ jobs:
187152 permissions :
188153 contents : read
189154 id-token : write
190- uses : smartcontractkit/.github/.github/workflows/reusable-docker-build-publish.yml@f4ff50d0f4713ed7b247dbd8a58316484907f958 # 2026-01-13
155+ uses : smartcontractkit/.github/.github/workflows/reusable-docker-build-publish.yml@d85d3577d56c9ecd31cb96694bb5b677b133bd14 # temporary until .github#1479 merges
191156 with :
192157 aws-ecr-name : chainlink
193158 aws-region-ecr : us-west-2
@@ -196,14 +161,13 @@ jobs:
196161 docker-build-context : .
197162 docker-build-args : |
198163 CHAINLINK_USER=chainlink
199- COMMIT_SHA=${{ github.sha }}
200- DOCKER_TAG=${{ needs.init.outputs.docker-tag-base }}-plugins-testing
164+ COMMIT_SHA=${{ needs.init.outputs.checked-out-sha }}
201165 VERSION_TAG=${{ needs.init.outputs.version-tag }}
202166 CL_INSTALL_PRIVATE_PLUGINS=true
203167 CL_INSTALL_TESTING_PLUGINS=true
204168 docker-manifest-sign : true
205169 docker-tag-custom-suffix : " -plugins-testing"
206- git-sha : ${{ inputs.git-ref || github. sha }}
170+ git-sha : ${{ needs.init.outputs.checked-out- sha }}
207171 github-event-name : ${{ github.event_name }}
208172 github-ref-name : ${{ github.ref_name }}
209173 github-ref-type : ${{ github.ref_type}}
@@ -223,7 +187,7 @@ jobs:
223187 permissions :
224188 contents : read
225189 id-token : write
226- uses : smartcontractkit/.github/.github/workflows/reusable-docker-build-publish.yml@f4ff50d0f4713ed7b247dbd8a58316484907f958 # 2026-01-13
190+ uses : smartcontractkit/.github/.github/workflows/reusable-docker-build-publish.yml@d85d3577d56c9ecd31cb96694bb5b677b133bd14 # temporary until .github#1479 merges
227191 with :
228192 aws-ecr-name : ccip
229193 aws-region-ecr : us-west-2
@@ -232,14 +196,13 @@ jobs:
232196 docker-build-context : .
233197 docker-build-args : |
234198 CHAINLINK_USER=chainlink
235- COMMIT_SHA=${{ github.sha }}
236- DOCKER_TAG=${{ needs.init.outputs.docker-tag-base }}
199+ COMMIT_SHA=${{ needs.init.outputs.checked-out-sha }}
237200 VERSION_TAG=${{ needs.init.outputs.version-tag }}
238201 CL_INSTALL_PRIVATE_PLUGINS=true
239202 CL_CHAIN_DEFAULTS=/ccip-config
240203 CL_SOLANA_CMD=
241204 docker-manifest-sign : true
242- git-sha : ${{ inputs.git-ref || github. sha }}
205+ git-sha : ${{ needs.init.outputs.checked-out- sha }}
243206 github-event-name : ${{ github.event_name }}
244207 github-ref-name : ${{ github.ref_name }}
245208 github-ref-type : ${{ github.ref_type}}
@@ -259,7 +222,7 @@ jobs:
259222 permissions :
260223 contents : read
261224 id-token : write
262- uses : smartcontractkit/.github/.github/workflows/reusable-docker-build-publish.yml@f4ff50d0f4713ed7b247dbd8a58316484907f958 # 2026-01-13
225+ uses : smartcontractkit/.github/.github/workflows/reusable-docker-build-publish.yml@d85d3577d56c9ecd31cb96694bb5b677b133bd14 # temporary until .github#1479 merges
263226 with :
264227 aws-ecr-name : ccip
265228 aws-region-ecr : us-west-2
@@ -268,14 +231,13 @@ jobs:
268231 docker-build-context : .
269232 docker-build-args : |
270233 CHAINLINK_USER=chainlink
271- COMMIT_SHA=${{ github.sha }}
272- DOCKER_TAG=${{ needs.init.outputs.docker-tag-base }}-plugins
234+ COMMIT_SHA=${{ needs.init.outputs.checked-out-sha }}
273235 VERSION_TAG=${{ needs.init.outputs.version-tag }}
274236 CL_INSTALL_PRIVATE_PLUGINS=true
275237 CL_CHAIN_DEFAULTS=/ccip-config
276238 docker-manifest-sign : true
277239 docker-tag-custom-suffix : " -plugins"
278- git-sha : ${{ inputs.git-ref || github. sha }}
240+ git-sha : ${{ needs.init.outputs.checked-out- sha }}
279241 github-event-name : ${{ github.event_name }}
280242 github-ref-name : ${{ github.ref_name }}
281243 github-ref-type : ${{ github.ref_type}}
0 commit comments