-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Schedule a nightly cron job for build+push of containers
Signed-off-by: Anoop C S <anoopcs@samba.org>
- Loading branch information
1 parent
bc77bbc
commit f9a0fdd
Showing
1 changed file
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: Nightly CI | ||
|
||
on: | ||
schedule: | ||
- cron: '0 2 * * *' | ||
|
||
jobs: | ||
|
||
build-nightly-server: | ||
runs-on: ubuntu-latest | ||
env: | ||
BUILDAH_FORMAT: oci | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Build the nightly server image | ||
run: make build-nightly-server | ||
|
||
test-nightly-server: | ||
#needs: build-nightly-server | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Test the nightly server image | ||
run: make test-nightly-server | ||
|
||
push: | ||
|
||
# verify it passes build and test first | ||
needs: test-nightly-server | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: log in to quay.io | ||
run: podman login -u "${{ secrets.QUAY_USER }}" -p "${{ secrets.QUAY_PASS }}" quay.io | ||
- name: push nightly server image | ||
# note: forcing use of podman here, since we did podman login above | ||
run: make CONTAINER_CMD=podman push-nightly-server |