Skip to content

Add image build action #1

Add image build action

Add image build action #1

Workflow file for this run

name: "build container image"
on:
push:
branches:
- main
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- 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

Check failure on line 28 in .github/workflows/build-docker.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/build-docker.yml

Invalid workflow file

You have an error in your yaml syntax on line 28
TAG: v2.7.2
run: |
make docker-build
- name: publish image
run: |
docker push ghcr.io/absaoss/cluster-api-provider-aws:v2.7.2