Skip to content

fixed version

fixed version #28

Workflow file for this run

name: release
on:
push:
tags:
- "v*.*.*"
jobs:
release-binaries:
name: Release binaries
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache-dependency-path: go.sum
- name: Build release packages
run: make release
- name: Create GitHub release
uses: softprops/action-gh-release@v1
with:
files: release/*
release-image:
name: Release OCI image
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
env:
CONTAINER_REGISTRY: ghcr.io/${{ github.repository_owner }}
REGISTRY_USERNAME: ${{ github.actor }}
REGISTRY_PASSWORD: ${{ github.token }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Log in to ghcr.io
uses: redhat-actions/podman-login@v1
with:
registry: ${{ env.CONTAINER_REGISTRY }}
username: ${{ env.REGISTRY_USERNAME }}
password: ${{ env.REGISTRY_PASSWORD }}
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache-dependency-path: go.sum
- name: Build and push image
run: make image COMPRESS=true PUSH=true