Skip to content

Commit

Permalink
Add workflow for building container
Browse files Browse the repository at this point in the history
Based on equivalent workflow in edm
  • Loading branch information
eest committed Sep 27, 2024
1 parent 33b39a5 commit 92cbe8b
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/container.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Build container

on:
workflow_run:
workflows:
- "Build"
branches:
- "main"
types:
- completed
push:
tags:
- "v*.*.*"

jobs:
container:
if: ${{ github.event.workflow_run.conclusion == 'success' }}
name: Build and push container
runs-on: ubuntu-latest
permissions:
actions: write
contents: read
packages: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.23.1'
- name: Make version
run: make version.go
- uses: ko-build/[email protected]
- run: ko build --bare
3 changes: 3 additions & 0 deletions .ko.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
defaultPlatforms:
- linux/amd64
- linux/arm64

0 comments on commit 92cbe8b

Please sign in to comment.