alpine-bash/.forgejo/workflows/build.yaml

13 lines
495 B
YAML
Raw Normal View History

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:
- cron: '0 0 * */1 *'
jobs:
build:
runs-on: docker
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