Skip to content

Build multiarch images #29

Build multiarch images

Build multiarch images #29

Workflow file for this run

name: "build container image"
on:
push:
branches:
- main
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Go 1.x
uses: actions/setup-go@v5
with:
go-version-file: ./go.mod
id: go
- name: 'Login to GitHub Container Registry'
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{github.actor}}
password: ${{secrets.GITHUB_TOKEN}}
- name: build container image
env:
REGISTRY: ghcr.io/absaoss
TAG: v2.9.3
GO_VERSION: ${{steps.go.outputs.go-version}}
run: |
make docker-build-all
make docker-push-manifest
- name: publish image
run: |
docker push ghcr.io/absaoss/cluster-api-aws-controller-amd64:v2.9.3