Nightly Build #655
This file contains 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 Build | |
on: | |
schedule: | |
# Random minute number to avoid GH scheduler stampede | |
- cron: '37 21 * * *' | |
workflow_dispatch: {} | |
jobs: | |
build-and-publish-images: | |
runs-on: ubuntu-22.04 | |
permissions: | |
contents: read | |
id-token: write | |
packages: write | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
- name: Setup go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: 1.20.1 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v2 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: Install regctl | |
uses: regclient/actions/regctl-installer@main | |
- name: Build image | |
run: make docker-build | |
- name: Log in to GHCR | |
uses: docker/[email protected] | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Push images | |
run: ./.github/workflows/scripts/push-images.sh nightly |