keycloak/.forgejo/workflows/container-build.yml

26 Zeilen
745 B
YAML

2025-01-18 12:39:28 +01:00
---
on: [push]
jobs:
build-image:
runs-on: host
2025-01-19 10:37:22 +01:00
steps:
2025-01-19 21:46:36 +01:00
- name: Test OS
2025-01-19 21:49:15 +01:00
shell: sh
2025-01-19 21:46:36 +01:00
run: |
2025-01-19 21:49:15 +01:00
js <<EOF
2025-01-19 21:46:36 +01:00
console.log(process.env.RUNNER_OS)
2025-01-19 21:49:15 +01:00
EOF
- uses: actions/checkout@v3
- uses: https://github.com/redhat-actions/buildah-build@v2
with:
containerfiles: Containerfile
image: ${{ github.repository }}
registry: gitea.sebastian-tobie.de
tags: latest ${{ github.run_number }}
- uses: https://github.com/redhat-actions/push-to-registry@v2.8
2025-01-18 16:14:33 +01:00
with:
image: ${{ github.repository }}
registry: gitea.sebastian-tobie.de
tags: latest ${{ github.run_number }}
2025-01-19 21:46:36 +01:00
password: ${{ github.token }}