Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: add arm64 go builds and docker images #184

Merged
merged 2 commits into from
Feb 12, 2025
Merged
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
8 changes: 7 additions & 1 deletion .github/workflows/ci-helm-deploy-nginx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ jobs:
uses: actions/setup-go@v5
with:
go-version: '1.23'
# https://github.com/docker/setup-qemu-action
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
# https://github.com/docker/setup-buildx-action
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
Expand Down Expand Up @@ -40,7 +46,7 @@ jobs:
- name: Import image into kind
run: |
docker images
docker tag postfinance/kubenurse:latest \
docker tag postfinance/kubenurse:latest-amd64 \
postfinance/kubenurse:latest-ci
kind load docker-image postfinance/kubenurse:latest-ci
- name: Deploy example setup
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/ci-helm-deploy-traefik.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ jobs:
uses: actions/setup-go@v5
with:
go-version: '1.23'
# https://github.com/docker/setup-qemu-action
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
# https://github.com/docker/setup-buildx-action
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
Expand All @@ -44,7 +50,7 @@ jobs:
- name: Import image into kind
run: |
docker images
docker tag postfinance/kubenurse:latest \
docker tag postfinance/kubenurse:latest-amd64 \
postfinance/kubenurse:latest-ci
kind load docker-image postfinance/kubenurse:latest-ci
- name: Deploy example setup
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/ci-kustomize-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ jobs:
uses: actions/setup-go@v5
with:
go-version: '1.23'
# https://github.com/docker/setup-qemu-action
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
# https://github.com/docker/setup-buildx-action
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
Expand Down Expand Up @@ -40,7 +46,7 @@ jobs:
- name: Import image into kind
run: |
docker images
docker tag postfinance/kubenurse:latest \
docker tag postfinance/kubenurse:latest-amd64 \
postfinance/kubenurse:latest-ci
kind load docker-image postfinance/kubenurse:latest-ci
- name: Deploy example setup
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ jobs:
uses: actions/setup-go@v5
with:
go-version: '1.23'
# https://github.com/docker/setup-qemu-action
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
# https://github.com/docker/setup-buildx-action
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to DockerHub
uses: docker/login-action@v3
with:
Expand Down
30 changes: 28 additions & 2 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,44 @@ builds:
- linux
goarch:
- amd64
- arm64
main: main.go
binary: kubenurse
id: kubenurse
docker_manifests:
- name_template: postfinance/kubenurse:{{ .Tag }}
image_templates:
- postfinance/kubenurse:{{ .Tag }}-amd64
- postfinance/kubenurse:{{ .Tag }}-arm64v8
- name_template: postfinance/kubenurse:latest
image_templates:
- postfinance/kubenurse:latest-amd64
- postfinance/kubenurse:latest-arm64v8
dockers:
- goos: linux
goarch: amd64
ids:
- kubenurse
image_templates:
- "postfinance/kubenurse:latest"
- "postfinance/kubenurse:{{ .Tag }}"
- "postfinance/kubenurse:latest-amd64"
- "postfinance/kubenurse:{{ .Tag }}-amd64"
dockerfile: Dockerfile
use: buildx
build_flag_templates:
- "--pull"
- "--platform=linux/amd64"
- goos: linux
goarch: arm64
ids:
- kubenurse
image_templates:
- "postfinance/kubenurse:latest-arm64v8"
- "postfinance/kubenurse:{{ .Tag }}-arm64v8"
dockerfile: Dockerfile
use: buildx
build_flag_templates:
- "--pull"
- "--platform=linux/arm64/v8"
checksum:
name_template: 'checksums.txt'
snapshot:
Expand Down
Loading