feature/forgejo-actions #2
3 geänderte Dateien mit 15 neuen und 52 gelöschten Zeilen
|
@ -1,24 +0,0 @@
|
||||||
---
|
|
||||||
name: Upload Tar Artifact
|
|
||||||
author: "Sebastian"
|
|
||||||
description: Uploads the file or directory as an artifact into github/forgejo
|
|
||||||
inputs:
|
|
||||||
name:
|
|
||||||
default: artifact.tar
|
|
||||||
description: Artifact name
|
|
||||||
path:
|
|
||||||
default: /bin
|
|
||||||
description: Paths of the file or directory with the data
|
|
||||||
outputs:
|
|
||||||
T:
|
|
||||||
description: just a sample output
|
|
||||||
value: TEST
|
|
||||||
runs:
|
|
||||||
using: composite
|
|
||||||
steps:
|
|
||||||
- name: collect
|
|
||||||
shell: sh
|
|
||||||
run: "/bin/env"
|
|
||||||
- name: upload
|
|
||||||
shell: sh
|
|
||||||
run: "/bin/true"
|
|
|
@ -1,29 +1,19 @@
|
||||||
---
|
---
|
||||||
on: [push]
|
on: [push]
|
||||||
jobs:
|
jobs:
|
||||||
clone:
|
build-image:
|
||||||
runs-on: nodelts
|
runs-on: host
|
||||||
container:
|
|
||||||
image: docker.io/node:lts
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
configuration:
|
- uses: https://github.com/redhat-actions/buildah-build@v2
|
||||||
runs-on: docker
|
|
||||||
needs:
|
|
||||||
- clone
|
|
||||||
container:
|
|
||||||
image: quay.io/keycloak/keycloak:latest
|
|
||||||
env:
|
|
||||||
PATH: "/opt/keycloak/bin:/usr/bin:/usr/local/bin"
|
|
||||||
KC_DB: postgres
|
|
||||||
KC_HTTPS_CLIENT_AUTH: request
|
|
||||||
KC_FEATURES: recovery-codes,passkeys,opentelemetry
|
|
||||||
steps:
|
|
||||||
- run: ls -lA
|
|
||||||
- run: kc.sh build
|
|
||||||
working-directory: /opt/keycloak/
|
|
||||||
- id: artifact-upload
|
|
||||||
uses: ./.forgejo/actions/artifact-upload
|
|
||||||
with:
|
with:
|
||||||
name: keycloak.tar
|
containerfiles: Containerfile
|
||||||
path: /opt/keycloak
|
image: ${{ github.repository }}
|
||||||
|
registry: gitea.sebastian-tobie.de
|
||||||
|
tags: latest ${{ github.run_number }}
|
||||||
|
- uses: https://github.com/redhat-actions/push-to-registry@v2.8
|
||||||
|
with:
|
||||||
|
image: ${{ github.repository }}
|
||||||
|
registry: gitea.sebastian-tobie.de
|
||||||
|
tags: latest ${{ github.run_number }}
|
||||||
|
password: ${{ github.token }}
|
|
@ -1,7 +1,4 @@
|
||||||
#ifndef SOURCE
|
FROM quay.io/keycloak/keycloak:latest as builder
|
||||||
#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 PATH="/opt/keycloak/bin:/usr/bin:/usr/local/bin"
|
||||||
|
|
||||||
ENV KC_HEALTH_ENABLED=false
|
ENV KC_HEALTH_ENABLED=false
|
||||||
|
@ -12,7 +9,7 @@ ENV KC_FEATURES=dynamic-scopes,recovery-codes,preview
|
||||||
ENV KC_DB_URL=postgresql://postgres.services.tobie:5432/keycloak
|
ENV KC_DB_URL=postgresql://postgres.services.tobie:5432/keycloak
|
||||||
RUN kc.sh build
|
RUN kc.sh build
|
||||||
|
|
||||||
FROM SOURCE
|
FROM quay.io/keycloak/keycloak:latest
|
||||||
ENV PATH="/opt/keycloak/bin:/usr/bin:/usr/local/bin"
|
ENV PATH="/opt/keycloak/bin:/usr/bin:/usr/local/bin"
|
||||||
|
|
||||||
COPY --from=builder /opt/keycloak/ /opt/keycloak/
|
COPY --from=builder /opt/keycloak/ /opt/keycloak/
|
Laden …
Tabelle hinzufügen
In neuem Issue referenzieren