ci(docker): github actions docker-publish.yml #14
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Release | |
| on: | |
| push: | |
| tags: | |
| - 'v*' # Trigger on tags like v1.0.0, v0.1.0-beta | |
| jobs: | |
| goreleaser: | |
| name: Build and Release with GoReleaser | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| with: | |
| # Fetch all history so GoReleaser can generate a changelog | |
| fetch-depth: 0 | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: '1.22' # From go.mod | |
| - name: Run GoReleaser | |
| uses: goreleaser/goreleaser-action@v6 | |
| with: | |
| # The version of GoReleaser to use. | |
| version: latest | |
| # The arguments to pass to GoReleaser. | |
| args: release --clean | |
| env: | |
| # The GITHUB_TOKEN is required to create the release. | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |