Skip to content

Add custom Docker image offering (#130) #26

Add custom Docker image offering (#130)

Add custom Docker image offering (#130) #26

Workflow file for this run

name: Releasing
on:
push:
tags:
- "*"
permissions:
packages: write
jobs:
goreleaser:
name: Release Application
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: "go.mod"
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: latest
- name: Test application
run: go test -v ./...
- name: Set up QEMU
uses: docker/login-action@v3
with:
registry: "ghcr.io"
username: ${{ github.repository_owner}}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set up QEMU
uses: docker/setup-qemu-actions@v3
- name: Release application to Github
uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Update new version in krew-index
uses: rajatjindal/[email protected]