Skip to content

Commit

Permalink
Schedule a nightly cron job for build+push of containers
Browse files Browse the repository at this point in the history
Signed-off-by: Anoop C S <anoopcs@samba.org>
  • Loading branch information
anoopcs9 authored and phlogistonjohn committed Oct 20, 2021
1 parent bc77bbc commit f9a0fdd
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/nightly-run.yml
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

0 comments on commit f9a0fdd

Please sign in to comment.