-
Notifications
You must be signed in to change notification settings - Fork 37
48 lines (39 loc) · 1.25 KB
/
nightly-images.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Nightly image build workflow
on:
schedule:
- cron: "0 3 * * *" # everyday at 3AM UTC - main branch
- cron: "0 2 * * *" # everyday at 2AM UTC - release-1.0 branch
run-name: nightly-images
env:
GIT_USER: ${{ secrets.GIT_USER }}
GITHUB_TOKEN: ${{ secrets.GIT_TOKEN }}
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Login to quay.io
uses: docker/login-action@v3
with:
registry: quay.io
username: ${{ secrets.QUAY_USER }}
password: ${{ secrets.QUAY_PWD }}
- uses: actions/checkout@v4
if: github.event.schedule == '0 3 * * *'
with:
ref: main
- uses: actions/checkout@v4
if: github.event.schedule == '0 2 * * *'
with:
ref: release-1.0
- name: Build and push nightly operator image
run: |
make docker-buildx \
-e NIGHTLY=true
- name: Publish nigthly bundle in OpenShift OperatorHub
run: |
make bundle-publish-nightly \
-e GIT_CONFIG_USER_NAME="$GIT_CONFIG_USER_NAME" \
-e GIT_CONFIG_USER_EMAIL="$GIT_CONFIG_USER_EMAIL"
env:
GIT_CONFIG_USER_NAME: "${{ github.actor }}"
GIT_CONFIG_USER_EMAIL: "${{ github.actor_id }}+${{ github.actor }}@users.noreply.github.com"