Merge pull request #7 from cert-manager/self-upgrade #5
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*" | |
env: | |
VERSION: ${{ github.ref_name }} | |
jobs: | |
build_images: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write # needed to write releases | |
packages: write # needed for push images | |
id-token: write # needed for keyless signing | |
steps: | |
- uses: actions/checkout@v4 | |
- id: go-version | |
run: | | |
make print-go-version >> "$GITHUB_OUTPUT" | |
- uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: ${{ steps.go-version.outputs.result }} | |
- env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: make release |