feat: publish container image (#82)

Use `goreleaser` and `ko` to automatically build and publish container
images in the release workflow. The images are published to
`ghcr.io/apricote/hcloud-upload-image`.

Co-authored-by: Ilja Malachowski <malahovskiy.in@gmail.com>
This commit is contained in:
Julian Tölle 2025-05-04 02:23:20 +02:00 committed by GitHub
parent 02e80b277f
commit 91df729f1c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 38 additions and 4 deletions

View file

@ -7,11 +7,22 @@ on:
jobs:
release:
permissions:
contents: read
packages: write
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Log in to the Container registry
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Go
uses: actions/setup-go@v5
with: