-
Notifications
You must be signed in to change notification settings - Fork 1
/
rockcraft.yaml
46 lines (42 loc) · 1.32 KB
/
rockcraft.yaml
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
name: oathkeeper
base: bare
build-base: [email protected]
version: "0.40.6"
summary: Ory Oathkeeper
description: |
Ory Oathkeeper is a cloud native Identity & Access Proxy / API (IAP) and Access Control Decision API that authenticates, authorizes, and mutates incoming HTTP(s) requests.
license: Apache-2.0
run-user: _daemon_
platforms:
amd64:
services:
oathkeeper:
override: replace
command: oathkeeper serve
startup: enabled
parts:
certificates:
plugin: nil
stage-packages:
- ca-certificates
oathkeeper:
plugin: go
build-snaps:
- go/1.21/stable
build-environment:
- CGO_ENABLED: "0"
override-build: |
src_config_path="github.com/ory/oathkeeper"
build_ver="${src_config_path}/x.Version"
build_hash="${src_config_path}/x.Commit"
build_date="${src_config_path}/x.Date"
go_linker_flags="-s \
-w \
-X ${build_ver}=$(git -C "${CRAFT_PART_SRC}" describe --tags) \
-X ${build_hash}=$(git -C "${CRAFT_PART_SRC}" rev-parse HEAD) \
-X ${build_date}=$(date -u +%Y-%m-%dT%H:%M:%SZ)"
go mod download
go build -ldflags="${go_linker_flags}" -o ${CRAFT_PART_INSTALL}/bin/oathkeeper
source: https://github.com/ory/oathkeeper
source-type: git
source-tag: v0.40.6