Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 13 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
contents: read

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BUILDKIT_PROGRESS: "plain" # Full logs for CI build.
REGISTRY_SRC: ${{ vars.REGISTRY_SRC || 'docker.io' }} # For BASE_NAMESPACE of images: where to pull base images from, docker.io or other source registry URL.
REGISTRY_DST: ${{ vars.REGISTRY_DST || 'quay.io' }} # For tags of built images: where to push images to, docker.io or other destination registry URL.
Expand Down Expand Up @@ -57,6 +56,7 @@
uses: actions/setup-go@v6
with:
go-version: "stable" # 1.26
cache-dependency-path: src/supervisord/go.mod
- name: Build Binary
run: |
set -eux
Expand All @@ -74,11 +74,14 @@

build_goreleaser:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v7
- uses: actions/setup-go@v6
with:
go-version: "stable" # 1.26
cache-dependency-path: src/supervisord/go.mod

- name: Install cross-compiler for linux/arm64, UPX
env:
Expand All @@ -104,11 +107,18 @@
- if: ${{ startsWith(github.ref, 'refs/tags/v') }} # if on a `tags/v*` git push, add `--skip=validate` to flags
run: echo "flags=--skip=validate" >> $GITHUB_ENV

- uses: goreleaser/goreleaser-action@v6
- uses: goreleaser/goreleaser-action@v7

Check warning

Code scanning / CodeQL

Unpinned tag for a non-immutable Action in workflow or composite action Medium

Unpinned 3rd party Action 'Build Go' step
Uses Step
uses 'goreleaser/goreleaser-action' with ref 'v7', not a pinned commit hash
env:
GITHUB_TOKEN: ${{ secrets.GA_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
distribution: goreleaser
version: latest
args: release --verbose --clean -f ../.goreleaser.yml ${{ env.flags }}
workdir: src/supervisord

- uses: actions/upload-artifact@v7
with:
name: supervisord-binaries
path: src/supervisord/dist/
if-no-files-found: error
retention-days: 2
4 changes: 2 additions & 2 deletions src/.goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ builds:
env:
- CGO_ENABLED=1
ldflags:
- "-linkmode external -extldflags -static"
- "-s -w -linkmode external -extldflags -static"
flags:
- -tags=release
goos:
Expand Down Expand Up @@ -95,6 +95,6 @@ release:
name_template: "{{.ProjectName}}-v{{.Version}}"

upx:
- enabled: true
- enabled: false
ids:
- static
Loading