Merge pull request #293 from dntosas/chore/update-vendor-2 #46
Workflow file for this run
This file contains 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" | |
on: | |
push: | |
tags: | |
- "v[0-9]+.[0-9]+.[0-9]+" | |
jobs: | |
build: | |
name: Create Release | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: '1.22' | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
logout: false | |
- name: Install Cosign | |
uses: sigstore/cosign-installer@v3.4.0 | |
with: | |
cosign-release: 'v2.0.0' | |
- name: Write Cosign signing key to disk | |
run: 'echo "$KEY" > cosign.key' | |
shell: bash | |
env: | |
KEY: ${{ secrets.COSIGN_PRIVATE_KEY }} | |
- name: Run GoReleaser | |
uses: goreleaser/goreleaser-action@v5 | |
with: | |
args: release --clean --config .github/config/goreleaser.yaml | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
COSIGN_PASSWORD: ${{ secrets.COSIGN_PRIVATE_KEY }} | |
# - name: Sign container image with annotations from our environment | |
# run: | | |
# cosign sign --key cosign.key \ | |
# -a "repo=${{ github.repository }}" \ | |
# -a "workflow=${{ github.workflow }}" \ | |
# -a "ref=${{ github.sha }}" \ | |
# ghcr.io/dntosas/capi2argo-cluster-operator:${{ github.event.release.tag_name }} | |
# env: | |
# COSIGN_PASSWORD: "" |