Merge pull request #20134 from lsm5/fcos-image-cron

[CI:BUILD] FCOS image: enable nightly build
This commit is contained in:
OpenShift Merge Robot
2023-09-25 17:20:26 -04:00
committed by GitHub

View File

@ -4,6 +4,9 @@ on:
push:
branches:
- main
# Run everyday at midnight and pull the latest packages from the copr
schedule:
- cron: '0 0 * * *'
env:
IMAGE_NAME: fcos
@ -24,6 +27,8 @@ jobs:
sudo apt -y install qemu-user-static
- name: Set up wait-for-copr
# Do not run on scheduled nightly builds
if: ${{ github.event_name }} != 'schedule'
run: |
pip3 install git+https://github.com/packit/wait-for-copr.git@main
@ -35,6 +40,8 @@ jobs:
id: short_sha
- name: Wait for successful podman-next build with the latest commit
# Do not run on scheduled nightly builds
if: ${{ github.event_name }} != 'schedule'
run: |
# TODO: add this in the Containerfile itself or as a --build-arg
wait-for-copr --owner ${{ env.COPR_OWNER }} --project ${{ env.COPR_PROJECT }} podman ${{ env.SHORT_SHA }}