Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
98 changes: 98 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
version: 2.1

orbs:
go: circleci/[email protected]

workflows:
build:
jobs:
- test
- build:
context:
- architect
filters:
tags:
only: /^v.*/

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

build:
resource_class: xlarge
machine:
image: ubuntu-2404:2024.11.1
environment:
COMPONENTS: core kubeadm-bootstrap kubeadm-control-plane
PLATFORMS: amd64 arm64

REGISTRY_AZURE: gsoci.azurecr.io/giantswarm
REGISTRY_ALIYUN: giantswarm-registry.cn-shanghai.cr.aliyuncs.com/giantswarm
steps:
- checkout

- run:
name: Generate CRDs
command: |-
# Generate CRDs.
make generate

# Check diff.
if ! git diff --exit-code
then
echo "There are differences in generated files."
echo "Please run and commit 'make generate', otherwise we can run into CRDs mismatching the code."
exit 1
fi

- run:
name: Build images
command: |-
# Iterate registry.
for registry in "${REGISTRY_AZURE}" "${REGISTRY_ALIYUN}"
do
# Build images.
make docker-build-all ALL_DOCKER_BUILD="${COMPONENTS}" ALL_ARCH="${PLATFORMS}" REGISTRY="${registry}" TAG="${CIRCLE_TAG:-${CIRCLE_SHA1}}"
done

- run:
name: Push to Azure
command: |-
# Log in to registry.
docker login --username "${ACR_GSOCI_USERNAME}" --password "${ACR_GSOCI_PASSWORD}" "${REGISTRY_AZURE%%/*}"

# Push images.
make docker-push-all ALL_DOCKER_BUILD="${COMPONENTS}" ALL_ARCH="${PLATFORMS}" REGISTRY="${REGISTRY_AZURE}" TAG="${CIRCLE_TAG:-${CIRCLE_SHA1}}"

- run:
name: Push to Aliyun
command: |-
# Try up to 10 times.
for i in {1..10}
do
# Log in to registry.
docker login --username "${ALIYUN_USERNAME}" --password "${ALIYUN_PASSWORD}" "${REGISTRY_ALIYUN%%/*}" && \
\
# Push images.
make docker-push-all ALL_DOCKER_BUILD="${COMPONENTS}" ALL_ARCH="${PLATFORMS}" REGISTRY="${REGISTRY_ALIYUN}" TAG="${CIRCLE_TAG:-${CIRCLE_SHA1}}" && exit 0

# Print attempt.
echo "Attempt #${i} failed."
sleep 30
done

# Exit erroneously.
exit 1
48 changes: 0 additions & 48 deletions .github/ISSUE_TEMPLATE/bug_report.yaml

This file was deleted.

49 changes: 0 additions & 49 deletions .github/ISSUE_TEMPLATE/failing_test.yaml

This file was deleted.

35 changes: 0 additions & 35 deletions .github/ISSUE_TEMPLATE/feature_request.yaml

This file was deleted.

50 changes: 0 additions & 50 deletions .github/ISSUE_TEMPLATE/flaking_test.yaml

This file was deleted.

103 changes: 0 additions & 103 deletions .github/ISSUE_TEMPLATE/kubernetes_bump.md

This file was deleted.

Loading