-
Notifications
You must be signed in to change notification settings - Fork 267
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17324 from wolfi-dev/version-stream-gatekeeper-3.15
Adding VersionStream for gatekeeper-3.15
- Loading branch information
Showing
1 changed file
with
68 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
package: | ||
name: gatekeeper-3.15 | ||
version: 3.15.1 | ||
epoch: 0 | ||
description: Gatekeeper - Policy Controller for Kubernetes | ||
copyright: | ||
- license: Apache-2.0 | ||
dependencies: | ||
provides: | ||
- gatekeeper=${{package.full-version}} | ||
|
||
environment: | ||
contents: | ||
packages: | ||
- build-base | ||
- busybox | ||
- ca-certificates-bundle | ||
- go | ||
- wolfi-baselayout | ||
|
||
pipeline: | ||
# We can't use go/install because this requires specific ldflags to set the version | ||
- uses: git-checkout | ||
with: | ||
repository: https://github.com/open-policy-agent/gatekeeper | ||
tag: v${{package.version}} | ||
expected-commit: a70af337ff734df74a099cd3a4d8dc2fee723395 | ||
|
||
- uses: go/bump | ||
with: | ||
deps: google.golang.org/[email protected] github.com/docker/[email protected] golang.org/x/[email protected] | ||
|
||
- runs: | | ||
FRAMEWORKS_VERSION=$(go list -f '{{ .Version }}' -m github.com/open-policy-agent/frameworks/constraint) | ||
OPA_VERSION=$(go list -f '{{ .Version }}' -m github.com/open-policy-agent/opa) | ||
CGO_ENABLED=0 GO111MODULE=on go build -mod vendor -a -ldflags "-w -X github.com/open-policy-agent/gatekeeper/pkg/version.Version=v${{package.version}} -X main.frameworksVersion=${FRAMEWORKS_VERSION} -X main.opaVersion=${OPA_VERSION}" -o manager | ||
make gator | ||
mkdir -p ${{targets.destdir}}/usr/bin | ||
install -Dm755 ./manager ${{targets.destdir}}/usr/bin/manager | ||
- uses: strip | ||
|
||
subpackages: | ||
- name: ${{package.name}}-compat | ||
pipeline: | ||
- runs: | | ||
mkdir -p ${{targets.subpkgdir}} | ||
ln -sf /usr/bin/manager ${{targets.subpkgdir}}/manager | ||
dependencies: | ||
provides: | ||
- gatekeeper-compat=${{package.full-version}} | ||
|
||
- name: ${{package.name}}-gator | ||
pipeline: | ||
- runs: | | ||
mkdir -p ${{targets.subpkgdir}}/usr/bin | ||
mv bin/gator ${{targets.subpkgdir}}/usr/bin/gator | ||
dependencies: | ||
provides: | ||
- gatekeeper-gator=${{package.full-version}} | ||
|
||
update: | ||
enabled: true | ||
github: | ||
identifier: open-policy-agent/gatekeeper | ||
strip-prefix: v | ||
use-tag: true | ||
tag-filter: v3.15. |