Skip to content

Merge pull request #155 from mvisonneau/renovate/github.com-hashicorp… #56

Merge pull request #155 from mvisonneau/renovate/github.com-hashicorp…

Merge pull request #155 from mvisonneau/renovate/github.com-hashicorp… #56

Workflow file for this run

---
name: release
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
branches:
- main
jobs:
release:
runs-on: ubuntu-22.04
env:
DOCKER_CLI_EXPERIMENTAL: 'enabled'
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: docker.io Login
uses: docker/login-action@v3
with:
registry: docker.io
username: ${{ github.repository_owner }}
password: ${{ secrets.DOCKER_HUB_TOKEN }}
- name: ghcr.io login
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GH_PAT }}
- name: quay.io Login
uses: docker/login-action@v3
with:
registry: quay.io
username: ${{ github.repository_owner }}
password: ${{ secrets.QUAY_TOKEN }}
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.22'
- name: Import GPG key
uses: crazy-max/ghaction-import-gpg@v6
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.GPG_PASSPHRASE }}
- name: Run goreleaser
run: make ${{ github.ref == 'refs/heads/main' && 'pre' || '' }}release
env:
GITHUB_TOKEN: ${{ secrets.GH_PAT }}