2024-04-16 20:16:41 +02:00
|
|
|
on:
|
2024-04-16 20:59:23 +02:00
|
|
|
push:
|
2024-04-16 20:16:41 +02:00
|
|
|
schedule:
|
2024-05-19 01:19:56 +02:00
|
|
|
- cron: '0 0 * * *'
|
2024-04-16 20:16:41 +02:00
|
|
|
jobs:
|
|
|
|
build:
|
2024-05-17 21:30:32 +02:00
|
|
|
runs-on: gitea-container-builder
|
2024-04-16 20:16:41 +02:00
|
|
|
steps:
|
2024-05-17 12:34:55 +02:00
|
|
|
- run: buildah login --username ${{ secrets.username }} --password ${{ secrets.password }} ${GITHUB_SERVER_URL}
|
|
|
|
- run: wget ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/raw/branch/${GITHUB_REF_NAME}/Dockerfile
|
2024-04-16 23:47:30 +02:00
|
|
|
- run: buildah build --isolation=chroot | tee container_id
|
2024-05-17 12:34:55 +02:00
|
|
|
- run: buildah push $(tail -n 1 container_id) ${GITHUB_SERVER_URL/https:\/\//}/${GITHUB_REPOSITORY,,}:latest
|