Skip to content

Add default attestation-status secret to Trustee deployment #5

Add default attestation-status secret to Trustee deployment

Add default attestation-status secret to Trustee deployment #5

Workflow file for this run

name: Release
on:
push:
tags:
- 'v*'
workflow_dispatch:
permissions:
contents: write
jobs:
build:
name: Build Release Binaries
runs-on: ubuntu-latest
strategy:
matrix:
include:
- goos: linux
goarch: amd64
- goos: linux
goarch: ppc64le
- goos: linux
goarch: s390x
- goos: darwin
goarch: amd64
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version: 'stable'
- name: Build release binary
run: make release GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }}
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: kubectl-coco-${{ matrix.goos }}-${{ matrix.goarch }}
path: release/*
release:
name: Create GitHub Release
needs: build
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Download all artifacts
uses: actions/download-artifact@v4
with:
path: artifacts
- name: Prepare release assets
run: |
mkdir -p release
find artifacts -type f -exec cp {} release/ \;
ls -lh release/
- name: Create Release
uses: softprops/action-gh-release@v1
with:
files: release/*
generate_release_notes: true
draft: false
prerelease: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}