Skip to content

Commit c77494b

Browse files
Merge pull request openshift-service-mesh#155 from openshift-service-mesh-bot/none-main-merge_upstream_main-38a843ce
Automator: merge upstream changes to openshift-service-mesh/sail-operator@main
2 parents 43043ce + 595be1f commit c77494b

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Nightly image build workflow
2+
3+
on:
4+
schedule:
5+
- cron: "0 3 * * *" # everyday at 3AM UTC
6+
7+
run-name: nightly-images
8+
9+
env:
10+
GIT_USER: ${{ secrets.GIT_USER }}
11+
GITHUB_TOKEN: ${{ secrets.GIT_TOKEN }}
12+
13+
jobs:
14+
release:
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- name: Login to quay.io
19+
uses: docker/login-action@v3
20+
with:
21+
registry: quay.io
22+
username: ${{ secrets.QUAY_USER }}
23+
password: ${{ secrets.QUAY_PWD }}
24+
25+
- uses: actions/checkout@v4
26+
27+
- name: Build and push nightly operator image
28+
run: |
29+
make docker-buildx \
30+
-e NIGHTLY=true
31+
32+
- name: Publish nigthly bundle in OpenShift OperatorHub
33+
run: |
34+
make bundle-publish-nightly \
35+
-e GIT_CONFIG_USER_NAME="$GIT_CONFIG_USER_NAME" \
36+
-e GIT_CONFIG_USER_EMAIL="$GIT_CONFIG_USER_EMAIL"
37+
env:
38+
GIT_CONFIG_USER_NAME: "${{ github.actor }}"
39+
GIT_CONFIG_USER_EMAIL: "${{ github.actor_id }}+${{ github.actor }}@users.noreply.github.com"

0 commit comments

Comments
 (0)