Skip to content

Commit f9a0fdd

Browse files
anoopcs9phlogistonjohn
authored andcommitted
Schedule a nightly cron job for build+push of containers
Signed-off-by: Anoop C S <[email protected]>
1 parent bc77bbc commit f9a0fdd

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/nightly-run.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Nightly CI
2+
3+
on:
4+
schedule:
5+
- cron: '0 2 * * *'
6+
7+
jobs:
8+
9+
build-nightly-server:
10+
runs-on: ubuntu-latest
11+
env:
12+
BUILDAH_FORMAT: oci
13+
steps:
14+
- uses: actions/checkout@v2
15+
- name: Build the nightly server image
16+
run: make build-nightly-server
17+
18+
test-nightly-server:
19+
#needs: build-nightly-server
20+
runs-on: ubuntu-latest
21+
steps:
22+
- uses: actions/checkout@v2
23+
- name: Test the nightly server image
24+
run: make test-nightly-server
25+
26+
push:
27+
28+
# verify it passes build and test first
29+
needs: test-nightly-server
30+
runs-on: ubuntu-latest
31+
steps:
32+
- uses: actions/checkout@v2
33+
- name: log in to quay.io
34+
run: podman login -u "${{ secrets.QUAY_USER }}" -p "${{ secrets.QUAY_PASS }}" quay.io
35+
- name: push nightly server image
36+
# note: forcing use of podman here, since we did podman login above
37+
run: make CONTAINER_CMD=podman push-nightly-server

0 commit comments

Comments
 (0)