keycloak/.forgejo/workflows/container-build.yml
Sebastian Tobie f8f0288137
Alle Prüfungen waren erfolgreich
/ container_build (push) Successful in 6m11s
fixed the wrong env name
2025-01-28 10:41:59 +01:00

27 Zeilen
Kein EOL
805 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}
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