Skip to content

chore(deps): bump github.com/cert-manager/cert-manager (#1538) #163

chore(deps): bump github.com/cert-manager/cert-manager (#1538)

chore(deps): bump github.com/cert-manager/cert-manager (#1538) #163

Workflow file for this run

name: release
on:
push:
tags:
- "v*"
workflow_dispatch: {}
permissions:
contents: read
jobs:
artifacts:
timeout-minutes: 10
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- os: linux
arch: amd64
- os: linux
arch: arm64
- os: darwin
arch: amd64
- os: darwin
arch: arm64
steps:
# --------------------------------------------------------------------------
# Repository Checkout
# --------------------------------------------------------------------------
- name: checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0
- name: setup golang
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
with:
go-version-file: go.mod
# --------------------------------------------------------------------------
# Build & Upload Artifacts
# --------------------------------------------------------------------------
- name: build for ${{ matrix.os }} ${{ matrix.arch }}
run: make build GOOS=${{ matrix.os }} GOARCH=${{ matrix.arch }}
- name: upload ${{ matrix.os }} ${{ matrix.arch }} artifact
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
with:
name: bin-${{ matrix.os }}-${{ matrix.arch }}
path: build/ktf.${{ matrix.os }}.${{ matrix.arch }}
if-no-files-found: error
# --------------------------------------------------------------------------
# Generate Checksums
# --------------------------------------------------------------------------
- name: generate checksum for ${{ matrix.os }} ${{ matrix.arch }} artifact
run: sha256sum ktf.${{ matrix.os }}.${{ matrix.arch }} >> CHECKSUMS.${{ matrix.os }}.${{ matrix.arch }}
working-directory: ./build/
- name: upload checksum for ${{ matrix.os }} ${{ matrix.arch }}
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
with:
name: CHECKSUMS-${{ matrix.os }}-${{ matrix.arch }}
path: build/CHECKSUMS.${{ matrix.os }}.${{ matrix.arch }}
if-no-files-found: error
# --------------------------------------------------------------------------
# Release Job
# --------------------------------------------------------------------------
release:
timeout-minutes: 10
runs-on: ubuntu-latest
needs:
- artifacts
permissions:
contents: write
steps:
# --------------------------------------------------------------------------
# Github Release
# --------------------------------------------------------------------------
- name: download checksums artifact
uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0
with:
pattern: CHECKSUMS*
merge-multiple: true
- name: concatenate all checksums
run: cat CHECKSUMS.* > CHECKSUMS
- name: download binary artifacts
uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0
with:
pattern: bin*
merge-multiple: true
- name: Release
uses: softprops/action-gh-release@a06a81a03ee405af7f2048a818ed3f03bbf83c7b # v2.5.0
with:
draft: false
prerelease: false
files: |
CHECKSUMS
ktf.*
body: |
See the [CHANGELOG.md](https://raw.githubusercontent.com/Kong/kubernetes-testing-framework/main/CHANGELOG.md)
env:
GITHUB_TOKEN: ${{ github.token }}