Skip to content

Commit c3c0585

Browse files
committed
Build multiarch images
Signed-off-by: Dinar Valeev <[email protected]>
1 parent d591aaa commit c3c0585

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

.github/workflows/build-docker.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ jobs:
1616
- name: Set up Go 1.x
1717
uses: actions/setup-go@v5
1818
with:
19-
go-version: '1.22'
19+
go-version-file: ./go.mod
2020
id: go
21-
- name: Build binary
22-
run: |
23-
make managers
21+
# - name: Build binary
22+
# run: |
23+
# make managers
2424
- name: 'Login to GitHub Container Registry'
2525
uses: docker/login-action@v1
2626
with:
@@ -30,9 +30,10 @@ jobs:
3030
- name: build container image
3131
env:
3232
REGISTRY: ghcr.io/absaoss
33-
TAG: v2.7.4
33+
TAG: v2.9.3
3434
run: |
35-
make docker-build
35+
make docker-build-all
36+
make docker-push-manifest
3637
- name: publish image
3738
run: |
38-
docker push ghcr.io/absaoss/cluster-api-aws-controller-amd64:v2.7.4
39+
docker push ghcr.io/absaoss/cluster-api-aws-controller-amd64:v2.9.3

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ TOOLCHAIN_IMAGE := toolchain
111111

112112
TAG ?= dev
113113
ARCH ?= $(shell go env GOARCH)
114-
ALL_ARCH ?= amd64 arm arm64 ppc64le s390x
114+
ALL_ARCH ?= amd64 arm64
115115

116116
# main controller
117117
CORE_IMAGE_NAME ?= cluster-api-aws-controller

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ require (
5454
sigs.k8s.io/aws-iam-authenticator v0.6.13
5555
sigs.k8s.io/cluster-api v1.10.2
5656
sigs.k8s.io/cluster-api/test v1.10.2
57-
sigs.k8s.io/controller-runtime v0.20.4
57+
sigs.k8s.io/controller-runtime v0.21.0
5858
sigs.k8s.io/yaml v1.4.0
5959
)
6060

0 commit comments

Comments
 (0)