Skip to content

Commit

Permalink
Use newer CircleCI config from release-2.4 branch (#603)
Browse files Browse the repository at this point in the history
  • Loading branch information
AndiDog authored Jul 24, 2024
1 parent 9074fd4 commit 127e32f
Showing 1 changed file with 33 additions and 3 deletions.
36 changes: 33 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,29 @@
version: 2.1

orbs:
go: circleci/[email protected]

jobs:
test:
resource_class: large
executor:
name: go/default
tag: "1.22.3"
steps:
- checkout
- go/load-cache
- go/mod-download
- run:
command: make setup-envtest
- go/save-cache
- run:
command: make test

build:
machine:
image: "ubuntu-2204:2022.10.2"
image: "ubuntu-2204:2024.05.1"
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 +32,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 +41,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 Expand Up @@ -68,3 +97,4 @@ workflows:
filters:
tags:
only: /^v.*/
- test

0 comments on commit 127e32f

Please sign in to comment.