Skip to content

github: release docker image with goreleaser #20

github: release docker image with goreleaser

github: release docker image with goreleaser #20

Workflow file for this run

name: release
on:
push:
tags:
- v*
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: stable
- uses: docker/setup-buildx-action@v3
- uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- uses: goreleaser/goreleaser-action@v6
with:
args: release --clean
version: "~> v2"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BUILD_BRANCH: ${{ vars.BUILD_BRANCH }}
BUILD_USER: ${{ vars.BUILD_USER }}