Skip to content

Commit

Permalink
add nightly for rc branch (#3533)
Browse files Browse the repository at this point in the history
  • Loading branch information
wilkermichael committed Feb 1, 2024
1 parent f694158 commit b38169a
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/weekly-acceptance-1-4-0-rc1.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Dispatch to the consul-k8s-workflows with a weekly cron
#
# A separate file is needed for each release because the cron schedules are different for each release.
name: weekly-acceptance-1-4-0-rc1
on:
schedule:
# * is a special character in YAML so you have to quote this string
# Run weekly on Friday at 3AM UTC/11PM EST/8PM PST
- cron: '0 3 * * 5'

# these should be the only settings that you will ever need to change
env:
BRANCH: "release/1.4.0-rc1"
CONTEXT: "weekly"

jobs:
cloud:
name: cloud
runs-on: ubuntu-latest
steps:
- uses: benc-uk/workflow-dispatch@798e70c97009500150087d30d9f11c5444830385 # v1.2.2
name: cloud
with:
workflow: cloud.yml
repo: hashicorp/consul-k8s-workflows
ref: main
token: ${{ secrets.ELEVATED_GITHUB_TOKEN }}
inputs: '{ "context":"${{ env.CONTEXT }}", "repository":"${{ github.repository }}", "branch":"${{ env.BRANCH }}", "sha":"${{ github.sha }}", "token":"${{ secrets.ELEVATED_GITHUB_TOKEN }}" }'
28 changes: 28 additions & 0 deletions .github/workflows/weekly-acceptance-1-4-x.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Dispatch to the consul-k8s-workflows with a weekly cron
#
# A separate file is needed for each release because the cron schedules are different for each release.
name: weekly-acceptance-1-4-x
on:
schedule:
# * is a special character in YAML so you have to quote this string
# Run weekly on Thursday at 3AM UTC/11PM EST/8PM PST
- cron: '0 3 * * 4'

# these should be the only settings that you will ever need to change
env:
BRANCH: "release/1.4.x"
CONTEXT: "weekly"

jobs:
cloud:
name: cloud
runs-on: ubuntu-latest
steps:
- uses: benc-uk/workflow-dispatch@798e70c97009500150087d30d9f11c5444830385 # v1.2.2
name: cloud
with:
workflow: cloud.yml
repo: hashicorp/consul-k8s-workflows
ref: main
token: ${{ secrets.ELEVATED_GITHUB_TOKEN }}
inputs: '{ "context":"${{ env.CONTEXT }}", "repository":"${{ github.repository }}", "branch":"${{ env.BRANCH }}", "sha":"${{ github.sha }}", "token":"${{ secrets.ELEVATED_GITHUB_TOKEN }}" }'

0 comments on commit b38169a

Please sign in to comment.