Skip to content

Merge pull request #10 from serverscom/tls-from-annotations #7

Merge pull request #10 from serverscom/tls-from-annotations

Merge pull request #10 from serverscom/tls-from-annotations #7

Workflow file for this run

---
name: goreleaser
on:
push:
tags:
- v*
jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: "1.21"
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to GHCR
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Run GoReleaser for tag
if: "startsWith(github.ref, 'refs/tags/')"
uses: goreleaser/goreleaser-action@v4
with:
version: latest
args: release --clean
env:
GORELEASER_CURRENT_TAG: ${{ github.ref_name }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Clear
if: always()
run: rm -f ${HOME}/.docker/config.json