Skip to content

Merge pull request #285 from hypnoglow/prepare-0.15.0 #5

Merge pull request #285 from hypnoglow/prepare-0.15.0

Merge pull request #285 from hypnoglow/prepare-0.15.0 #5

Workflow file for this run

name: release
on:
push:
tags:
- 'v*'
jobs:
release:
name: Release
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2
with:
fetch-depth: 0
- name: Setup Go
uses: actions/setup-go@268d8c0ca0432bb2cf416faae41297df9d262d7f # v3.3.0
with:
cache: true
go-version-file: 'go.mod'
- name: Download dependencies
run: |
go mod download -x
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@ff11ca24a9b39f2d36796d1fbd7a4e39c182630a # v3.1.0
with:
version: latest
args: release --rm-dist --config=.goreleaser.yml
env:
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Useful if you want to use not the latest tag for changelog.
GORELEASER_PREVIOUS_TAG: ""
docker-images:
name: Build Docker images
uses: ./.github/workflows/reusable-docker-images.yml
secrets:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
test-install:
name: Test plugin installation
needs:
- release
uses: ./.github/workflows/reusable-test-install.yml