-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split releases into 3 workflows. (#748)
- Loading branch information
1 parent
d48a05d
commit 90a3010
Showing
6 changed files
with
106 additions
and
46 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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: "Content release: Dev" | ||
on: | ||
# Can be manually triggered | ||
workflow_dispatch: | ||
# Runs 5:05 am EDT Monday to Friday. | ||
# This currently UTC -> EDT. | ||
schedule: | ||
- cron: "05 9 * * 1-5" | ||
# Runs each time there is a new Production Tag created. | ||
workflow_run: | ||
workflows: ['Create Production Tag'] | ||
types: [completed] | ||
branches: [main] | ||
|
||
concurrency: next-build-content-release-dev | ||
|
||
jobs: | ||
content-release-dev: | ||
# This job should run for any valid event besides workflow_run, or workflow_run if the conclusion was successful. | ||
if: ${{ github.event_name != 'workflow_run' || github.event.workflow_run.conclusion == 'success' }} | ||
uses: department-of-veterans-affairs/next-build/.github/workflows/content-release.yml@main | ||
with: | ||
build_type: "dev" | ||
secrets: inherit | ||
|
||
|
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: "Content release: Prod" | ||
on: | ||
# Can be manually triggered | ||
workflow_dispatch: | ||
# Runs automatically every 30 minutes from 8am to 8pm Monday to Friday. | ||
# This currently UTC -> EDT. | ||
schedule: | ||
- cron: "*/30 0,12-23 * * 1-5" | ||
# Runs on API call. Used for CMS-driven build triggers. | ||
repository_dispatch: | ||
types: [content-release] | ||
|
||
concurrency: next-build-content-release-prod | ||
|
||
jobs: | ||
content-release: | ||
uses: department-of-veterans-affairs/next-build/.github/workflows/content-release.yml@main | ||
with: | ||
build_type: "prod" | ||
secrets: inherit | ||
|
||
|
||
|
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: "Content release: Dev" | ||
on: | ||
# Can be manually triggered | ||
workflow_dispatch: | ||
# Runs 5:35 am EDT Monday to Friday. | ||
# This currently UTC -> EDT. | ||
schedule: | ||
- cron: "35 9 * * 1-5" | ||
# Runs each time there is a new Production Tag created. | ||
workflow_run: | ||
workflows: ['Create Production Tag'] | ||
types: [completed] | ||
branches: [main] | ||
|
||
concurrency: next-build-content-release-staging | ||
|
||
jobs: | ||
content-release-staging: | ||
# This job should run for any valid event besides workflow_run, or workflow_run if the conclusion was successful. | ||
if: ${{ github.event_name != 'workflow_run' || github.event.workflow_run.conclusion == 'success' }} | ||
uses: department-of-veterans-affairs/next-build/.github/workflows/content-release.yml@main | ||
with: | ||
build_type: "staging" | ||
secrets: inherit | ||
|
||
|
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
This file was deleted.
Oops, something went wrong.
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