add nightly build and push

This commit is contained in:
Leandro Lafin 2024-07-12 14:29:45 -03:00
parent d0bbe7f713
commit bcdb575721
No known key found for this signature in database
GPG Key ID: 60C427B9DF40CB72
1 changed files with 38 additions and 0 deletions

38
.github/workflows/nightly.yml vendored Normal file
View File

@ -0,0 +1,38 @@
name: Nightly builds
on:
schedule: # Run every day at 03:00 UTC
- cron: '0 3 * * *'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
with:
ref: master
fetch-depth: 0
fetch-tags: true
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v2
- name: Login to quay.io
uses: docker/login-action@v2
with:
registry: quay.io/oauth2-proxy
username: ${{ secrets.REGISTRY_USERNAME_NIGHTLY }}
password: ${{ secrets.REGISTRY_PASSWORD_NIGHTLY }}
- name: Build images
run: |
make docker-nightly-build
- name: Push images
run: |
make docker-nightly-push