Skip to content

Nightly

Nightly #133

name: Nightly
on:
schedule:
- cron: '0 1 * * *'
jobs:
nightly:
env:
REPO: ttl.sh/gke-operator-nightly
TAG: 1d
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Build binary
run: make build
- name: Set current date as env variable
run: echo "NOW=$(date +'%Y%m%d')" >> $GITHUB_ENV
- name: Set up Docker Buildx
id: buildx
uses: docker/[email protected]
- name: Build and push image
uses: docker/[email protected]
with:
context: .
tags: ${{ env.REPO}}-${{ env.NOW }}:${{ env.TAG }}
push: true
cache-from: type=gha
cache-to: type=gha,mode=max
file: package/Dockerfile