Skip to content

feat: remove inbuilt sanitisation checks applied to a tag generated b… #16

feat: remove inbuilt sanitisation checks applied to a tag generated b…

feat: remove inbuilt sanitisation checks applied to a tag generated b… #16

Workflow file for this run

# Copyright (c) 2023 Purple Clay
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# in the Software without restriction, including without limitation the rights
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all
# copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
name: release
on:
push:
tags:
- "v*.*.*"
permissions:
actions: read
contents: write
id-token: write
packages: write
jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Git Clone
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: ${{ vars.GO_VERSION }}
cache: true
- name: Install Cosign
uses: sigstore/cosign-installer@main
- name: Download Syft
uses: anchore/sbom-action/download-syft@v0
- uses: docker/setup-qemu-action@v3
- uses: docker/setup-buildx-action@v3
- name: DockerHub Login
uses: docker/login-action@v3
with:
username: ${{ secrets.GH_DOCKER_USERNAME }}
password: ${{ secrets.GH_DOCKER_PASSWORD }}
- name: GHCR Login
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: GitLab Login
uses: docker/login-action@v3
with:
registry: registry.gitlab.com
username: ${{ secrets.GL_DOCKER_USERNAME }}
password: ${{ secrets.GL_DOCKER_PASSWORD }}
- name: GoReleaser
uses: goreleaser/goreleaser-action@v5
with:
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GH_GORELEASER }}
FURY_TOKEN: ${{ secrets.GH_FURY_TOKEN }}