Commits vergleichen

...

54 Commits

Autor SHA1 Nachricht Datum
fe4f2ef530 preparing for pull
Alle Prüfungen waren erfolgreich
/ container_build (push) Successful in 6m45s
2025-01-28 11:02:00 +01:00
f8f0288137 fixed the wrong env name
Alle Prüfungen waren erfolgreich
/ container_build (push) Successful in 6m11s
2025-01-28 10:41:59 +01:00
4268d0ea7b added an info message and fixed the cleanup
Alle Prüfungen waren erfolgreich
/ container_build (push) Successful in 6m18s
2025-01-28 10:33:31 +01:00
55a4d6948c forgot to replace the sync with copy
Einige Prüfungen sind fehlgeschlagen
/ container_build (push) Failing after 6m18s
2025-01-28 10:11:46 +01:00
1a89489d11 rewrote the copy
Einige Prüfungen sind fehlgeschlagen
/ container_build (push) Failing after 9m58s
2025-01-28 09:54:52 +01:00
d2d6374824 replaced the token with an pac.
Einige Prüfungen sind fehlgeschlagen
/ container_build (push) Failing after 14m55s
this will be reverted when https://codeberg.org/forgejo/forgejo/issues/3571 is closed
2025-01-27 08:02:13 +01:00
75fa33efd9 added an sleep between login and push
Einige Prüfungen sind fehlgeschlagen
/ container_build (push) Failing after 5m25s
2025-01-26 20:05:22 +01:00
87c3a81ee9 fixed the empty user error
Einige Prüfungen sind fehlgeschlagen
/ container_build (push) Failing after 25s
2025-01-26 20:02:51 +01:00
3c3a0be3a6 completly silenced the buildah from 2025-01-26 19:58:02 +01:00
d52ca5c0b3 fixed the missing domain
Einige Prüfungen sind fehlgeschlagen
/ container_build (push) Has been cancelled
2025-01-26 19:56:48 +01:00
a86949306c using the token in the login 2025-01-26 19:55:57 +01:00
f4cd8f04d3 removed the debug logging 2025-01-26 19:43:35 +01:00
01cfafbc87 silenced the skopeo copy 2025-01-26 19:43:14 +01:00
7d9fa942e3 using skopeo instead of buildah to change tags
Einige Prüfungen sind fehlgeschlagen
/ container_build (push) Failing after 20s
2025-01-26 19:41:52 +01:00
72ad8b2b08 using the -a option
Einige Prüfungen sind fehlgeschlagen
/ container_build (push) Failing after 19s
2025-01-26 19:39:18 +01:00
e778d763fa creating trhe authfile and moved the definition to the skopeo step
Einige Prüfungen sind fehlgeschlagen
/ container_build (push) Failing after 19s
2025-01-26 19:30:41 +01:00
2b9cf8bb00 fixed the workflow file
Einige Prüfungen sind fehlgeschlagen
/ container_build (push) Failing after 3s
2025-01-26 19:28:33 +01:00
9e7def6b20 added auth file 2025-01-26 19:24:36 +01:00
665cfd1f08 removed the duplicate docker://
Einige Prüfungen sind fehlgeschlagen
/ container_build (push) Failing after 18s
2025-01-26 19:06:35 +01:00
fe640319fe added an replacemnet for the portocol
Einige Prüfungen sind fehlgeschlagen
/ container_build (push) Failing after 19s
2025-01-26 19:05:18 +01:00
d7e174e892 removed unsupported parameter
Einige Prüfungen sind fehlgeschlagen
/ container_build (push) Failing after 20s
2025-01-26 18:56:25 +01:00
ef7f87025b silenced buildah in some steps 2025-01-26 18:56:13 +01:00
19db78eb83 moved the build to an shellscript
Einige Prüfungen sind fehlgeschlagen
/ container_build (push) Failing after 19s
2025-01-26 18:49:43 +01:00
c3c388a146 moved the testing to an seperate workflow
Einige Prüfungen sind fehlgeschlagen
/ container_build (push) Failing after 24s
2025-01-26 16:00:17 +01:00
169f6b0bad changed the program to node
Alle Prüfungen waren erfolgreich
/ test_1 (push) Successful in 0s
/ test_2 (push) Successful in 7s
2025-01-21 22:25:56 +01:00
e540c55960 added two different steps
Einige Prüfungen sind fehlgeschlagen
/ test_1 (push) Successful in 0s
/ test_2 (push) Failing after 8s
2025-01-21 21:17:47 +01:00
ed2476a139 removed unusable stuff
Alle Prüfungen waren erfolgreich
/ build-image (push) Successful in 1s
2025-01-21 21:08:59 +01:00
8378f1b4ed added env as comparison
Einige Prüfungen sind fehlgeschlagen
/ build-image (push) Failing after 4s
2025-01-19 21:51:57 +01:00
1d3ade3e23 changed the code to an heredoc
Einige Prüfungen sind fehlgeschlagen
/ build-image (push) Failing after 4s
2025-01-19 21:49:15 +01:00
7bb1ec868d aadded some debugging
Einige Prüfungen sind fehlgeschlagen
/ build-image (push) Failing after 4s
2025-01-19 21:46:36 +01:00
24f0f87220 replaced the whole workflow with an job running on the host
Einige Prüfungen sind fehlgeschlagen
/ build-image (push) Failing after 3s
2025-01-19 21:32:11 +01:00
9b0a3f8619 fixed the config
Einige Prüfungen sind fehlgeschlagen
/ configuration (push) Failing after 15s
/ clone (push) Successful in 9s
2025-01-19 10:58:29 +01:00
fb83eadc84 using an nodejs image and the normal checkout
Einige Prüfungen sind fehlgeschlagen
/ configuration (push) Failing after 13s
/ clone (push) Successful in 2m18s
2025-01-19 10:49:52 +01:00
da7dfbeb80 fixed the missing indices
Einige Prüfungen sind fehlgeschlagen
/ configuration (push) Has been skipped
/ clone (push) Failing after 9s
2025-01-19 10:44:09 +01:00
f6353a44de removed the usesless sleep
Einige Prüfungen sind fehlgeschlagen
/ configuration (push) Has been skipped
/ clone (push) Failing after 23s
2025-01-19 10:39:20 +01:00
275fa13a27 seperated the cloning
Einige Prüfungen sind noch ausstehend
/ clone (push) Waiting to run
/ configuration (push) Blocked by required conditions
2025-01-19 10:37:22 +01:00
8efff905bd added an name and some debugging
Einige Prüfungen sind fehlgeschlagen
/ configuration (push) Has been cancelled
2025-01-19 10:32:23 +01:00
dad86c677e added a clone step
Einige Prüfungen sind fehlgeschlagen
/ configuration (push) Failing after 6s
2025-01-19 10:29:27 +01:00
d3ba58d157 added an checkout step
Einige Prüfungen sind fehlgeschlagen
/ configuration (push) Failing after 15s
2025-01-19 10:22:46 +01:00
ab6183f12c added an ls
Einige Prüfungen sind fehlgeschlagen
/ configuration (push) Failing after 15s
2025-01-19 10:21:30 +01:00
17180c52a6 added sample output
Einige Prüfungen sind fehlgeschlagen
/ configuration (push) Failing after 13s
2025-01-19 10:15:45 +01:00
63be3e5bdf none of the inputs is now required 2025-01-19 10:09:19 +01:00
916fb39046 another test
Einige Prüfungen sind fehlgeschlagen
/ configuration (push) Failing after 12s
2025-01-18 17:52:46 +01:00
eb604cad37 changed the id of the artifact upload
Einige Prüfungen sind fehlgeschlagen
/ configuration (push) Failing after 13s
2025-01-18 16:54:08 +01:00
72e382ddb2 added metadata to the action.yml
Einige Prüfungen sind fehlgeschlagen
/ configuration (push) Failing after 13s
2025-01-18 16:44:12 +01:00
6f7691593a found the error in the custom action
Einige Prüfungen sind fehlgeschlagen
/ configuration (push) Failing after 12s
2025-01-18 16:14:33 +01:00
775c05462e disabled the custom action
Alle Prüfungen waren erfolgreich
/ configuration (push) Successful in 12s
2025-01-18 16:07:53 +01:00
ea661930e2 changed back to action.yml
Einige Prüfungen sind fehlgeschlagen
/ configuration (push) Failing after 12s
2025-01-18 15:01:18 +01:00
8e7873e050 renamed the action.yml to action.yaml
Einige Prüfungen sind fehlgeschlagen
/ configuration (push) Failing after 13s
2025-01-18 14:51:51 +01:00
0810cd85ac moved to an own action instead of the javascript action
Einige Prüfungen sind fehlgeschlagen
/ configuration (push) Failing after 13s
2025-01-18 14:42:00 +01:00
9407ce3822 downgrade to v3 of upload acrtifact
Einige Prüfungen sind fehlgeschlagen
/ configuration (push) Failing after 24s
2025-01-18 14:09:28 +01:00
5b54f30e52 removed broken envvars 2025-01-18 14:09:10 +01:00
1b98b91b84 fixed the env variables and moved to an special runner
Einige Prüfungen sind fehlgeschlagen
/ configuration (push) Failing after 15s
2025-01-18 12:52:18 +01:00
70c5367397 test workflow
Einige Prüfungen sind fehlgeschlagen
/ configuration (push) Failing after 12s
2025-01-18 12:39:28 +01:00
3 geänderte Dateien mit 62 neuen und 34 gelöschten Zeilen

Datei anzeigen

@ -0,0 +1,27 @@
---
on:
push:
workflow_dispatch:
jobs:
container_build:
runs-on: private-vault
steps:
- name: Fetch repo
uses: actions/checkout@v3
- name: Container build
run: "./build_container.sh"
- name: Container push
env:
REGISTRY_AUTH_FILE: ${{env.RUNNER_TEMP}}/auth.json
run: |
skopeo login -u 'user' -p "${{ secrets.DOCKER_TOKEN }}" ${GITHUB_SERVER_URL}
server=${GITHUB_SERVER_URL//https:/docker:}
for tag in latest $GITHUB_RUN_NUMBER ; do
echo pushing image to "${server}/${GITHUB_REPOSITORY}:${tag}"
skopeo copy -q -a --dest-precompute-digests dir:image "${server}/${GITHUB_REPOSITORY}:${tag}"
done
- name: Cleanup
run: |
podman image prune -f

Datei anzeigen

@ -1,34 +0,0 @@
#ifndef SOURCE
#define SOURCE gitea.sebastian-tobie.de/docker/keycloak:latest-orig
#endif
FROM SOURCE as builder
ENV PATH="/opt/keycloak/bin:/usr/bin:/usr/local/bin"
ENV KC_HEALTH_ENABLED=false
ENV KC_DB=postgres
ENV KC_CACHE_STACK=tcp
ENV KC_HTTPS_CLIENT_AUTH=request
ENV KC_FEATURES=dynamic-scopes,recovery-codes,preview
ENV KC_DB_URL=postgresql://postgres.services.tobie:5432/keycloak
RUN kc.sh build
FROM SOURCE
ENV PATH="/opt/keycloak/bin:/usr/bin:/usr/local/bin"
COPY --from=builder /opt/keycloak/ /opt/keycloak/
WORKDIR /opt/keycloak
ENV KC_HOSTNAME_ADMIN_URL="https://admin.sso.sebastian-tobie.de"
ENV KC_HOSTNAME_URL="https://sso.sebastian-tobie.de"
ENV KC_DB_USERNAME=keycloak
ENV KC_DB_PASSWORD=changeme
ENV KC_DB_URL=postgresql://postgres.services.tobie:5432/keycloak
ENV KEYCLOAK_ADMIN="admin"
ENV KEYCLOAK_ADMIN_PASSWORD="admin"
EXPOSE 8080
COPY --chown=root:root tobie-ca.crt /etc/pki/ca-trust/source/anchors/tobie-ca.crt
USER root
RUN keytool -importcert -alias tobieca -cacerts -storepass changeit -noprompt -trustcacerts -file /etc/pki/ca-trust/source/anchors/tobie-ca.crt
USER keycloak
ENTRYPOINT ["kc.sh", "start", "--optimized", "--http-enabled", "true", "--proxy", "edge", "--log-console-format", "'%-5p [%c] (%t) %s%e%n'", "--hostname-strict-backchannel=true"]

35
build_container.sh Ausführbare Datei
Datei anzeigen

@ -0,0 +1,35 @@
#!/bin/bash
set -e
both() {
"$@" builder
"$@" final
}
source=quay.io/keycloak/keycloak:latest
buildah from -q --name builder --pull=newer $source >/dev/null
buildah from -q --name final $source >/dev/null
buildah config -l - -e - -a - -p - final
buildah config \
-e PATH="/opt/keycloak/bin:/usr/bin:/usr/local/bin" \
-e KC_HTTPS_CLIENT_AUTH=request \
builder
buildah config \
-e KC_HOSTNAME_ADMIN_URL="https://admin.sso.sebastian-tobie.de" \
-e KC_HOSTNAME_URL="https://sso.sebastian-tobie.de" \
-e KC_DB_USERNAME=keycloak \
-e KC_DB_PASSWORD=changeme \
-e KC_DB_URL=postgresql://postgres.services.tobie:5432/keycloak \
-e KEYCLOAK_ADMIN="admin" \
-e KEYCLOAK_ADMIN_PASSWORD="admin" \
-p 8080/tcp \
-u keycloak:keycloak \
--entrypoint "[\"kc.sh\", \"start\", \"--optimized\", \"--http-enabled\", \"true\", \"--proxy\", \"edge\", \"--log-console-format\", \"'%-5p [%c] (%t) %s%e%n'\", \"--hostname-strict-backchannel=true\"]" \
final
buildah run -- builder kc.sh build --db=postgres --metrics-enabled=true --https-client-auth request --features web-authn,passkeys,persistent-user-sessions,recovery-codes --features-disabled kerberos,docker,ciba,fips
buildah copy --from builder --chown root:root final /opt/keycloak/ /opt/keycloak/
buildah rm builder
buildah commit --squash -q -f oci --rm final dir:image