-
Notifications
You must be signed in to change notification settings - Fork 8
56 lines (50 loc) · 1.6 KB
/
Copy pathRelease.yml
File metadata and controls
56 lines (50 loc) · 1.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# SPDX-FileCopyrightText: Copyright © 2026 OpenCHAMI a Series of LF Projects, LLC
#
# SPDX-License-Identifier: MIT
name: Release with goreleaser
on:
workflow_dispatch:
push:
tags:
- v*
permissions:
contents: write
packages: write
attestations: write
id-token: write
jobs:
go-version:
runs-on: ubuntu-slim
outputs:
version: ${{ steps.go-mod.outputs.version }}
steps:
- uses: actions/checkout@v6.0.3
with:
persist-credentials: false
- id: go-mod
run: echo "version=$(awk '/^go / {print $2; exit}' go.mod)" >> "$GITHUB_OUTPUT"
stress-tests:
runs-on: ubuntu-slim
steps:
- uses: actions/checkout@v6.0.3
with:
persist-credentials: false
- uses: actions/setup-go@v6.4.0
with:
go-version-file: go.mod
- name: Run release stress tests
run: make test-stress
release:
needs:
- go-version
- stress-tests
uses: OpenCHAMI/github-actions/.github/workflows/go-build-release.yml@c07065a1a490d5576e5ef210dd0c6627f9358fed # v3.10
with:
cgo-enabled: 1
go-version: ${{ needs.go-version.outputs.version }}
goreleaser-version: "v2.11.2"
pre-build-commands: |
go install github.com/swaggo/swag/cmd/swag@v1.16.6
sudo apt update && sudo apt install -y git gcc g++ make ca-certificates curl gnupg gcc-aarch64-linux-gnu binutils-aarch64-linux-gnu libc6-dev-arm64-cross software-properties-common clang-tools libstdc++-13-dev-arm64-cross
attestation-binary-path: "dist/cloud-init*"
registry-name: ghcr.io/openchami/cloud-init