nightly-images #60
This file contains hidden or 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
| name: Nightly image build workflow | |
| on: | |
| schedule: | |
| - cron: "0 3 * * *" # everyday at 3AM UTC - main 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 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| with: | |
| name: project-v4-builder | |
| - 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" \ | |
| -e USE_IMAGE_DIGESTS=true | |
| env: | |
| GIT_CONFIG_USER_NAME: "${{ github.actor }}" | |
| GIT_CONFIG_USER_EMAIL: "${{ github.actor_id }}+${{ github.actor }}@users.noreply.github.com" |