Skip to content

Commit

Permalink
Push to Azure registry (#581)
Browse files Browse the repository at this point in the history
  • Loading branch information
AndiDog authored Jan 10, 2024
1 parent 947dff2 commit e25dc0f
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ jobs:
image: "ubuntu-2204:2022.10.2"
environment:
ALL_ARCH: "amd64 arm64"
REGISTRY_AZURE: gsoci.azurecr.io/giantswarm
REGISTRY_QUAY: quay.io/giantswarm
REGISTRY_CHINA: giantswarm-registry.cn-shanghai.cr.aliyuncs.com/giantswarm
steps:
Expand All @@ -15,7 +16,7 @@ jobs:
- run:
name: Build the CAPA docker images
command: |
for registry in $REGISTRY_QUAY $REGISTRY_CHINA; do
for registry in $REGISTRY_AZURE $REGISTRY_QUAY $REGISTRY_CHINA; do
make docker-build-all ALL_ARCH="$ALL_ARCH" TAG=$CIRCLE_SHA1 REGISTRY=$registry
if [ -n "$CIRCLE_TAG" ]; then
Expand All @@ -24,6 +25,18 @@ jobs:
fi
done
- run:
name: Push to Azure
command: |
docker login --username $ACR_GSOCI_USERNAME --password $ACR_GSOCI_PASSWORD "${REGISTRY_AZURE%/*}"
make docker-push-all ALL_ARCH="$ALL_ARCH" TAG=$CIRCLE_SHA1 REGISTRY=$REGISTRY_AZURE
if [ -n "$CIRCLE_TAG" ]; then
echo "Pushing tag $CIRCLE_TAG"
make docker-push-all ALL_ARCH="$ALL_ARCH" TAG="$CIRCLE_TAG" REGISTRY=$REGISTRY_AZURE
fi
- run:
name: Push to quay
command: |
Expand Down

0 comments on commit e25dc0f

Please sign in to comment.