Skip to content

build: build & publish with ko #3

build: build & publish with ko

build: build & publish with ko #3

Workflow file for this run

name: build-containers
on:
push:
branches:
- main
jobs:
build-publish:
name: updown-exporter
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: stable
- uses: ko-build/[email protected]
- name: Log in to GHCR
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- run: |
ko build --sbom=none --bare .
env:
KO_DOCKER_REPO: ghcr.io/${{ github.repository }}