Skip to content

Commit

Permalink
Add image build action
Browse files Browse the repository at this point in the history
Signed-off-by: Dinar Valeev <[email protected]>
  • Loading branch information
k0da committed Nov 19, 2024
1 parent 98b66d3 commit 81dd7e3
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/build-docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
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: '1.22'
id: go
- name: Build binary
run: |
make managers
- 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.7.2
run: |
make docker-build
- name: publish image
run: |
docker push ghcr.io/absaoss/cluster-api-aws-controller-amd64:v2.7.2

0 comments on commit 81dd7e3

Please sign in to comment.