Skip to content

Commit f6f8d9d

Browse files
committed
chore(ci): scenario tests pick docker registry by repo on v5-next
1 parent c3c4043 commit f6f8d9d

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

.github/workflows/ci3.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,7 @@ jobs:
254254
DOCKERHUB_PASSWORD: ${{ secrets.DOCKERHUB_PASSWORD }}
255255
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
256256
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
257+
INTERNAL_DOCKER_REGISTRY: ${{ secrets.INTERNAL_DOCKER_REGISTRY }}
257258
CI3_INSTANCE_PROFILE_NAME: ${{ secrets.CI3_INSTANCE_PROFILE_NAME }}
258259
CI3_SECURITY_GROUP_ID: ${{ secrets.CI3_SECURITY_GROUP_ID }}
259260
RUN_ID: ${{ github.run_id }}
@@ -269,7 +270,16 @@ jobs:
269270
tag="${tag#v}"
270271
major_version=$(./ci3/semver major "$tag")
271272
namespace="v${major_version}-scenario"
272-
docker_image="aztecprotocol/aztec:${tag}"
273+
case "$GITHUB_REPOSITORY" in
274+
AztecProtocol/aztec-packages-private)
275+
image_registry="${INTERNAL_DOCKER_REGISTRY%/}"
276+
echo "::add-mask::${image_registry}"
277+
;;
278+
*)
279+
image_registry="aztecprotocol"
280+
;;
281+
esac
282+
docker_image="${image_registry}/aztec:${tag}"
273283
else
274284
# branch name
275285
namespace=pr-$(echo "$HEAD_REF" | sed 's/[^a-z0-9-]/-/g' | cut -c1-20 | sed 's/-*$//')

0 commit comments

Comments
 (0)