-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgatekeeper-3.17.1-1.yml
58 lines (50 loc) · 1.15 KB
/
gatekeeper-3.17.1-1.yml
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
57
58
#syntax=ghcr.io/azure/dalec/frontend:0.9
args:
COMMIT: e8d5d49a9df7ce52a215848eb8cdbd3c7857c2c3
REVISION: 1
VERSION: 3.17.1
name: gatekeeper-manager
packager: Azure Container Upstream
vendor: Microsoft Corporation
license: Apache-2.0
website: https://github.com/open-policy-agent/gatekeeper
description: OPA Gatekeeper
version: ${VERSION}
revision: ${REVISION}
sources:
gatekeeper:
git:
url: https://github.com/open-policy-agent/gatekeeper.git
commit: ${COMMIT}
image:
entrypoint: /manager
user: 65532:65532
post:
symlinks:
/usr/bin/manager:
path: /manager
dependencies:
build:
golang:
git:
runtime:
openssl-libs:
version:
- "== 3.3.0-2.azl3" # pinning for demo purposes
ca-certificates:
build:
env:
VERSION: ${VERSION}
steps:
- command: |
cd gatekeeper
export LDFLAGS="-X github.com/open-policy-agent/gatekeeper/v3/pkg/version.Version=${VERSION}"
go build -ldflags="${LDFLAGS}" -mod vendor -o bin/manager
artifacts:
binaries:
gatekeeper/bin/manager: {}
tests:
- name: Check files
files:
/usr/bin/manager:
permissions: 0755