forked from wolfi-dev/os
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dex.yaml
71 lines (60 loc) · 1.78 KB
/
dex.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
package:
name: dex
# When bumping the version check if the GHSA mitigations below can be removed.
version: 2.41.1
epoch: 2
description: OpenID Connect (OIDC) identity and OAuth 2.0 provider with pluggable connectors
copyright:
- license: Apache-2.0
checks:
disabled:
- srv
environment:
contents:
packages:
- build-base
- busybox
- ca-certificates-bundle
- git
- go
- wolfi-baselayout
pipeline:
# We can't use go/install because this requires a specific go version
- uses: git-checkout
with:
repository: https://github.com/dexidp/dex
tag: v${{package.version}}
expected-commit: 43956db7fd75c488a82c70cf231f44287300a75d
destination: dex
- uses: go/bump
with:
deps: golang.org/x/[email protected]
modroot: dex
- runs: |
cd dex
# These build commands are adapted from the upstream `make release-binary` target.
export GOBIN="$GOPATH/bin"
LD_FLAGS="-w -X main.version=v${{package.version}} -extldflags \"-static\""
go build -o "$GOBIN/dex" -v -ldflags "$LD_FLAGS" ./cmd/dex
go build -o "$GOBIN/docker-entrypoint" -v -ldflags "$LD_FLAGS" ./cmd/docker-entrypoint
mkdir -p ${{targets.destdir}}/usr/bin
mkdir -p ${{targets.destdir}}/srv/dex
mkdir -p ${{targets.destdir}}/etc/dex
mkdir -p ${{targets.destdir}}/var/dex
mv "$GOBIN/dex" ${{targets.destdir}}/usr/bin/
mv "$GOBIN/docker-entrypoint" ${{targets.destdir}}/usr/bin/
mv web ${{targets.destdir}}/srv/dex/
mv config.docker.yaml ${{targets.destdir}}/etc/dex/
- uses: strip
update:
enabled: true
github:
identifier: dexidp/dex
strip-prefix: v
tag-filter: v
test:
pipeline:
# AUTOGENERATED
- runs: |
dex --help
dex version