2025-01-18 12:39:28 +01:00
|
|
|
---
|
2025-01-21 22:25:56 +01:00
|
|
|
on:
|
2025-01-26 16:00:17 +01:00
|
|
|
push:
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
|
2025-01-18 12:39:28 +01:00
|
|
|
jobs:
|
2025-01-26 16:00:17 +01:00
|
|
|
container_build:
|
|
|
|
runs-on: private-vault
|
2025-01-21 21:17:47 +01:00
|
|
|
steps:
|
2025-01-26 16:00:17 +01:00
|
|
|
- name: Fetch repo
|
|
|
|
uses: actions/checkout@v3
|
2025-01-26 18:49:43 +01:00
|
|
|
- name: Container build
|
|
|
|
run: "./build_container.sh"
|
|
|
|
- name: Container push
|
2025-01-26 19:30:41 +01:00
|
|
|
env:
|
|
|
|
REGISTRY_AUTH_FILE: ${{env.RUNNER_TEMP}}/auth.json
|
2025-01-26 18:49:43 +01:00
|
|
|
run: |
|
2025-01-26 20:02:51 +01:00
|
|
|
skopeo login -u 'user' -p ${GITHUB_TOKEN} ${GITHUB_SERVER_URL}
|
2025-01-26 19:55:57 +01:00
|
|
|
skopeo copy -a --dest-precompute-digests containers-storage:localhost/keycloak:latest ${GITHUB_SERVER_URL//https:/docker:}/${{ env.GITHUB_REPOSITORY }}:latest
|
2025-01-26 16:00:17 +01:00
|
|
|
- name: Cleanup
|
2025-01-26 18:49:43 +01:00
|
|
|
run: |
|
|
|
|
buildah rmi -f localhost/keycloak
|
|
|
|
buildah prune -f
|