File tree 8 files changed +20
-18
lines changed
8 files changed +20
-18
lines changed Original file line number Diff line number Diff line change 17
17
strategy :
18
18
matrix :
19
19
os : [linux]
20
- arch : [amd64, arm64]
20
+ arch : [amd64, arm64, arm ]
21
21
steps :
22
22
- name : Add Git
23
23
run : apk add -U git
Original file line number Diff line number Diff line change 21
21
strategy :
22
22
matrix :
23
23
os : [linux]
24
- arch : [amd64, arm64]
24
+ arch : [amd64, arm64, arm ]
25
25
steps :
26
26
- name : Add Git
27
27
run : apk add -U git
@@ -138,4 +138,4 @@ jobs:
138
138
tags : rancher/system-upgrade-controller:${{ env.TAG }}
139
139
file : package/Dockerfile
140
140
target : controller
141
- platforms : linux/amd64, linux/arm64
141
+ platforms : linux/amd64, linux/arm64, linux/arm
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ RUN if [ "${ARCH:-$(go env GOARCH)}" = "amd64" ]; then \
17
17
chmod +x /usr/local/bin/docker-compose; \
18
18
fi
19
19
RUN mkdir -p /usr/local/lib/docker/cli-plugins; \
20
- curl -o /usr/local/lib/docker/cli-plugins/docker-buildx -fsSL "https://github.com/docker/buildx/releases/download/v0.16.2 /buildx-v0.16.2 .linux-${ARCH} "; \
20
+ curl -o /usr/local/lib/docker/cli-plugins/docker-buildx -fsSL "https://github.com/docker/buildx/releases/download/v0.17.1 /buildx-v0.17.1 .linux-amd64 "; \
21
21
chmod +x /usr/local/lib/docker/cli-plugins/docker-buildx
22
22
ENV DAPPER_ENV REPO TAG DRONE_TAG
23
23
ENV DAPPER_SOURCE /go/src/github.com/rancher/system-upgrade-controller/
Original file line number Diff line number Diff line change @@ -9,4 +9,4 @@ mkdir -p bin
9
9
[ " $( uname) " != " Darwin" ] && LINKFLAGS=" -extldflags -static -s"
10
10
echo " Building $PKG ..."
11
11
VERSIONFLAGS=" -X ${PKG} /pkg/version.Version=${VERSION} -X ${PKG} /pkg/version.GitCommit=${COMMIT: 0: 8} "
12
- CGO_ENABLED=0 go build -ldflags " $VERSIONFLAGS $LINKFLAGS " -o bin/system-upgrade-controller
12
+ CGO_ENABLED=0 GOARCH= $ARCH go build -ldflags " $VERSIONFLAGS $LINKFLAGS " -o bin/system-upgrade-controller
Original file line number Diff line number Diff line change @@ -9,4 +9,4 @@ mkdir -p bin
9
9
[ " $( uname) " != " Darwin" ] && LINKFLAGS=" -extldflags -static -s"
10
10
echo " Building $PKG /e2e ..."
11
11
VERSIONFLAGS=" -X ${PKG} /pkg/version.Version=${VERSION} -X ${PKG} /pkg/version.GitCommit=${COMMIT: 0: 8} "
12
- CGO_ENABLED=0 go test -c -ldflags " $VERSIONFLAGS $LINKFLAGS " -o bin/system-upgrade-controller.test ./e2e/suite/...
12
+ CGO_ENABLED=0 GOARCH= $ARCH go test -c -ldflags " $VERSIONFLAGS $LINKFLAGS " -o bin/system-upgrade-controller.test ./e2e/suite/...
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ source $(dirname $0)/version
6
6
cd $( dirname $0 ) /..
7
7
8
8
docker buildx build \
9
- --build-arg TARGETARCH= ${ARCH} \
9
+ --platform linux/ ${ARCH} \
10
10
--build-arg REPO=${REPO} \
11
11
--build-arg TAG=${TAG} \
12
12
--build-arg VERSION=${VERSION} \
Original file line number Diff line number Diff line change @@ -5,8 +5,12 @@ source $(dirname $0)/version
5
5
6
6
cd $( dirname $0 ) /..
7
7
8
+ if [ " $ARCH " != " amd64" ]; then
9
+ exit 0
10
+ fi
11
+
8
12
docker buildx build \
9
- --build-arg TARGETARCH= ${ARCH} \
13
+ --platform linux/ ${ARCH} \
10
14
--build-arg REPO=${REPO} \
11
15
--build-arg TAG=${TAG} \
12
16
--build-arg VERSION=${VERSION} \
@@ -24,11 +28,9 @@ docker image save --output ./dist/artifacts/system-upgrade-controller-e2e-tests-
24
28
echo ${REPO} /system-upgrade-controller:${TAG} -e2e-tests >> ./dist/images.txt
25
29
echo Built ${REPO} /system-upgrade-controller:${TAG} -e2e-tests
26
30
27
- if [ " $ARCH " = " amd64" ]; then
28
- sonobuoy gen plugin \
29
- --format=junit \
30
- --image ${REPO} /system-upgrade-controller:${VERSION} -e2e-tests \
31
- --name system-upgrade-controller \
32
- --type job \
33
- > ./dist/artifacts/system-upgrade-controller-e2e-tests.yaml
34
- fi
31
+ sonobuoy gen plugin \
32
+ --format=junit \
33
+ --image ${REPO} /system-upgrade-controller:${VERSION} -e2e-tests \
34
+ --name system-upgrade-controller \
35
+ --type job \
36
+ > ./dist/artifacts/system-upgrade-controller-e2e-tests.yaml
Original file line number Diff line number Diff line change 3
3
4
4
cd $( dirname $0 ) /..
5
5
6
- echo Running validation
7
-
8
6
PACKAGES=" $( go list ./...) "
9
7
8
+ file bin/*
9
+
10
10
if ! command -v golangci-lint; then
11
11
echo Skipping validation: no golangci-lint available
12
12
exit
You can’t perform that action at this time.
0 commit comments