keycloak/.forgejo/workflows/container-build.yml
Sebastian Tobie 1a89489d11
Einige Prüfungen sind fehlgeschlagen
/ container_build (push) Failing after 9m58s
rewrote the copy
2025-01-28 09:54:52 +01:00

26 Zeilen
Kein EOL
747 B
YAML

---
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}
for tag in latest $GITHUB_TAG_NUMBER ; do
skopeo sync -a --dest-precompute-digests dir:image ${GITHUB_SERVER_URL//https:/docker:}/${{ env.GITHUB_REPOSITORY }}:$tag
done
- name: Cleanup
run: |
buildah rmi -f localhost/keycloak
podman image prune -f