Skip to content
This repository has been archived by the owner on Mar 16, 2024. It is now read-only.

Add release CI

Add release CI #2

Workflow file for this run

name: Release
on:
push:
tags:
- "v*"
jobs:
build:
name: Build
runs-on: ubuntu-20.04
timeout-minutes: 20
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
cache: false
go-version: "1.20"
- name: Toolchain
run: |
make toolchain
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Make image
run: |
CONTROLLER_IMG=karpenter KO_DOCKER_REPO=ghcr.io/acorn-io ko publish -B -t ${{ github.ref_name}} ./cmd/controller