-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: publish charts nightly with reusable workflow
Signed-off-by: Carlos Salas <[email protected]>
- Loading branch information
1 parent
eadc0f4
commit edd88ad
Showing
1 changed file
with
7 additions
and
26 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,30 +2,11 @@ name: Nightly | |
on: | ||
schedule: | ||
- cron: '0 1 * * *' | ||
workflow_dispatch: | ||
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 | ||
publish_nightly: | ||
uses: rancher-sandbox/highlander-reusable-workflows/.github/workflows/operator-with-latest-rancher-build.yaml@main | ||
with: | ||
operator_name: gke-operator | ||
rancher_ref: release/v2.8 | ||
operator_commit: ${{ github.sha }} |