Fix release and updates #17
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 a tag" | |
| on: | |
| push: | |
| tags: | |
| - v* | |
| jobs: | |
| release: | |
| name: Release Process | |
| runs-on: ubuntu-latest | |
| env: | |
| GO_VERSION: stable | |
| CGO_ENABLED: 0 | |
| steps: | |
| # https://github.com/marketplace/actions/checkout | |
| - name: Check out code | |
| uses: actions/checkout@v7 | |
| with: | |
| fetch-depth: 0 | |
| # https://github.com/marketplace/actions/setup-go-environment | |
| - name: Set up Go ${{ env.GO_VERSION }} | |
| uses: actions/setup-go@v7 | |
| with: | |
| go-version: ${{ env.GO_VERSION }} | |
| - name: dockerhub-login | |
| uses: docker/login-action@v4 | |
| with: | |
| username: ${{ secrets.DOCKER_USERNAME }} | |
| password: ${{ secrets.DOCKER_PASSWORD }} | |
| - name: ghcr-login | |
| uses: docker/login-action@v4 | |
| with: | |
| registry: ghcr.io | |
| username: traefiker | |
| password: ${{ secrets.GHCR_TOKEN }} | |
| - name: Set up QEMU | |
| uses: docker/setup-qemu-action@v4 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v4 | |
| # https://goreleaser.com/ci/actions/ | |
| - name: Run GoReleaser | |
| uses: goreleaser/goreleaser-action@v7 | |
| with: | |
| version: '~> v2' | |
| args: release --clean | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GH_TOKEN_REPO }} |