Skip to content

Commit f939185

Browse files
njuettnerGacko
authored andcommitted
Giant Swarm changes.
1 parent 53c0cef commit f939185

32 files changed

+646
-902
lines changed

.circleci/config.yml

Lines changed: 108 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,108 @@
1+
version: 2.1
2+
3+
orbs:
4+
go: circleci/[email protected]
5+
6+
workflows:
7+
build:
8+
jobs:
9+
- test
10+
- build:
11+
context:
12+
- architect
13+
filters:
14+
tags:
15+
only: /^v.*/
16+
17+
jobs:
18+
test:
19+
resource_class: large
20+
executor:
21+
name: go/default
22+
tag: 1.24.6
23+
steps:
24+
- checkout
25+
- go/load-build-cache
26+
- go/mod-download
27+
- run:
28+
command: make setup-envtest
29+
- go/save-build-cache
30+
- go/save-mod-cache
31+
- run:
32+
command: make test
33+
34+
build:
35+
resource_class: xlarge
36+
machine:
37+
image: ubuntu-2404:2024.11.1
38+
environment:
39+
COMPONENTS: core kubeadm-bootstrap kubeadm-control-plane
40+
PLATFORMS: amd64 arm64
41+
42+
REGISTRY_AZURE: gsoci.azurecr.io/giantswarm
43+
REGISTRY_QUAY: quay.io/giantswarm
44+
REGISTRY_ALIYUN: giantswarm-registry.cn-shanghai.cr.aliyuncs.com/giantswarm
45+
steps:
46+
- checkout
47+
48+
- run:
49+
name: Generate CRDs
50+
command: |-
51+
# Generate CRDs.
52+
make generate
53+
54+
# Check diff.
55+
if ! git diff --exit-code
56+
then
57+
echo "There are differences in generated files."
58+
echo "Please run and commit 'make generate', otherwise we can run into CRDs mismatching the code."
59+
exit 1
60+
fi
61+
62+
- run:
63+
name: Build images
64+
command: |-
65+
# Iterate registry.
66+
for registry in "${REGISTRY_AZURE}" "${REGISTRY_QUAY}" "${REGISTRY_ALIYUN}"
67+
do
68+
# Build images.
69+
make docker-build-all ALL_DOCKER_BUILD="${COMPONENTS}" ALL_ARCH="${PLATFORMS}" REGISTRY="${registry}" TAG="${CIRCLE_TAG:-${CIRCLE_SHA1}}"
70+
done
71+
72+
- run:
73+
name: Push to Azure
74+
command: |-
75+
# Log in to registry.
76+
docker login --username "${ACR_GSOCI_USERNAME}" --password "${ACR_GSOCI_PASSWORD}" "${REGISTRY_AZURE%%/*}"
77+
78+
# Push images.
79+
make docker-push-all ALL_DOCKER_BUILD="${COMPONENTS}" ALL_ARCH="${PLATFORMS}" REGISTRY="${REGISTRY_AZURE}" TAG="${CIRCLE_TAG:-${CIRCLE_SHA1}}"
80+
81+
- run:
82+
name: Push to Quay
83+
command: |-
84+
# Log in to registry.
85+
docker login --username "${QUAY_USERNAME}" --password "${QUAY_PASSWORD}" "${REGISTRY_QUAY%%/*}"
86+
87+
# Push images.
88+
make docker-push-all ALL_DOCKER_BUILD="${COMPONENTS}" ALL_ARCH="${PLATFORMS}" REGISTRY="${REGISTRY_QUAY}" TAG="${CIRCLE_TAG:-${CIRCLE_SHA1}}"
89+
90+
- run:
91+
name: Push to Aliyun
92+
command: |-
93+
# Try up to 10 times.
94+
for i in {1..10}
95+
do
96+
# Log in to registry.
97+
docker login --username "${ALIYUN_USERNAME}" --password "${ALIYUN_PASSWORD}" "${REGISTRY_ALIYUN%%/*}" && \
98+
\
99+
# Push images.
100+
make docker-push-all ALL_DOCKER_BUILD="${COMPONENTS}" ALL_ARCH="${PLATFORMS}" REGISTRY="${REGISTRY_ALIYUN}" TAG="${CIRCLE_TAG:-${CIRCLE_SHA1}}" && exit 0
101+
102+
# Print attempt.
103+
echo "Attempt #${i} failed."
104+
sleep 30
105+
done
106+
107+
# Exit erroneously.
108+
exit 1

.github/ISSUE_TEMPLATE/bug_report.yaml

Lines changed: 0 additions & 48 deletions
This file was deleted.

.github/ISSUE_TEMPLATE/failing_test.yaml

Lines changed: 0 additions & 49 deletions
This file was deleted.

.github/ISSUE_TEMPLATE/feature_request.yaml

Lines changed: 0 additions & 35 deletions
This file was deleted.

.github/ISSUE_TEMPLATE/flaking_test.yaml

Lines changed: 0 additions & 50 deletions
This file was deleted.

0 commit comments

Comments
 (0)