Skip to content

Commit

Permalink
Merge pull request #247 from salasberryfin/publish-charts-nightly
Browse files Browse the repository at this point in the history
chore: publish charts nightly with reusable workflow
  • Loading branch information
salasberryfin authored Dec 21, 2023
2 parents eadc0f4 + edd88ad commit 8a5fec9
Showing 1 changed file with 7 additions and 26 deletions.
33 changes: 7 additions & 26 deletions .github/workflows/nightly-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit 8a5fec9

Please sign in to comment.