Build multiarch images #29
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |