mirror of
https://github.com/projectcapsule/capsule.git
synced 2026-02-14 09:59:57 +00:00
* chore(repo): rework makefile and add renovate mangers for pre-commit and makefile binaries Signed-off-by: Oliver Bähler <oliverbaehler@hotmail.com> * chore(repo): add renovate managers Signed-off-by: Oliver Bähler <oliverbaehler@hotmail.com> * chore(repo): add renovate managers Signed-off-by: Oliver Bähler <oliverbaehler@hotmail.com> * chore(repo): add renovate managers Signed-off-by: Oliver Bähler <oliverbaehler@hotmail.com> * chore(repo): add renovate managers Signed-off-by: Oliver Bähler <oliverbaehler@hotmail.com> * chore(repo): add renovate managers Signed-off-by: Oliver Bähler <oliverbaehler@hotmail.com> * chore(repo): add renovate managers Signed-off-by: Oliver Bähler <oliverbaehler@hotmail.com> * chore(repo): add renovate managers Signed-off-by: Oliver Bähler <oliverbaehler@hotmail.com> --------- Signed-off-by: Oliver Bähler <oliverbaehler@hotmail.com>
82 lines
2.6 KiB
YAML
82 lines
2.6 KiB
YAML
name: Go Release
|
|
|
|
permissions: {}
|
|
on:
|
|
push:
|
|
tags:
|
|
- 'v*'
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
seccomp-generation:
|
|
name: Seccomp Generation
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
# differently from the e2e workflow
|
|
# we don't need all the versions of kubernetes
|
|
# to generate the seccomp profile.
|
|
k8s-version:
|
|
- "v1.30.0"
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
|
with:
|
|
fetch-depth: 0
|
|
- uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
|
|
with:
|
|
go-version-file: 'go.mod'
|
|
- uses: azure/setup-helm@fe7b79cd5ee1e45176fcad797de68ecaf3ca4814 # v4
|
|
with:
|
|
version: v3.14.2
|
|
- name: unit tracing
|
|
run: sudo make trace-unit
|
|
- name: e2e tracing
|
|
run: sudo KIND_K8S_VERSION=${{ matrix.k8s-version }} make trace-e2e
|
|
- name: build seccomp profile
|
|
run: make seccomp
|
|
- name: upload artifact
|
|
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
|
|
with:
|
|
name: capsule-seccomp
|
|
path: capsule-seccomp.json
|
|
|
|
create-release:
|
|
needs: seccomp-generation
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: write
|
|
id-token: write
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
|
with:
|
|
fetch-depth: 0
|
|
- name: Install Go
|
|
uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0
|
|
with:
|
|
go-version-file: 'go.mod'
|
|
- name: Setup caches
|
|
uses: ./.github/actions/setup-caches
|
|
timeout-minutes: 5
|
|
continue-on-error: true
|
|
- uses: creekorful/goreportcard-action@1f35ced8cdac2cba28c9a2f2288a16aacfd507f9 # v1.0
|
|
- uses: anchore/sbom-action/download-syft@79202aee38a39bd2039be442e58d731b63baf740
|
|
- name: Install Cosign
|
|
uses: sigstore/cosign-installer@c56c2d3e59e4281cc41dea2217323ba5694b171e # v3.8.0
|
|
- name: download artifact
|
|
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
|
|
with:
|
|
name: capsule-seccomp
|
|
path: ./capsule-seccomp.json
|
|
- name: Run GoReleaser
|
|
uses: goreleaser/goreleaser-action@9ed2f89a662bf1735a48bc8557fd212fa902bebf # v6.1.0
|
|
with:
|
|
version: latest
|
|
args: release --clean --timeout 90m
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|