-
Notifications
You must be signed in to change notification settings - Fork 289
/
Copy pathkeycloak.yaml
62 lines (54 loc) · 1.96 KB
/
keycloak.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
package:
name: keycloak
version: 24.0.1
epoch: 0
description: Open Source Identity and Access Management For Modern Applications and Services
copyright:
- license: Apache-2.0
dependencies:
runtime:
- bash # Keycloak helper scripts require bash, aren't compatible with busybox.
- openjdk-17-default-jvm
environment:
contents:
packages:
- bash
- busybox
- ca-certificates-bundle
- nodejs-18
- openjdk-17
- openjdk-17-default-jvm
- wolfi-base
- wolfi-baselayout
environment:
LANG: en_US.UTF-8
JAVA_HOME: /usr/lib/jvm/java-17-openjdk
pipeline:
- uses: git-checkout
with:
repository: https://github.com/keycloak/keycloak
tag: ${{package.version}}
expected-commit: c30877c23165b774249c799bbe9ab7d049180b0e
- runs: |
# Keycloak installation. Note we use the maven wrapper as configured in
# the source repo to build - ensures the correct maven version for
# building the project, preventing issues such as CI hangs.
# Build and install child module (keycloak-js-adapter-jar)
./mvnw clean install -Dnode.version=$(node --version) -f adapters/oidc/js/pom.xml -q
# Build keycloak-server. Depends on `keycloak-js-adapter-jar`.
./mvnw clean install -DskipTests=true -Dnode.version=$(node --version) -Pdistribution -q
mkdir -p ${{targets.destdir}}/usr/share/java
unzip -d ${{targets.destdir}}/usr/share/java quarkus/dist/target/keycloak-*.zip
mv ${{targets.destdir}}/usr/share/java/keycloak-* ${{targets.destdir}}/usr/share/java/keycloak
mkdir -p ${{targets.destdir}}/usr/bin
for i in kc.sh kcadm.sh kcreg.sh; do
ln -sf /usr/share/java/keycloak/bin/$i ${{targets.destdir}}/usr/bin/$i
done
update:
# The upstream repos releases contains a 'nightly' release. Which we want to
# exclude from discovery.
ignore-regex-patterns:
- '.*nightly.*'
enabled: true
github:
identifier: keycloak/keycloak