-
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.
- Loading branch information
Showing
1,175 changed files
with
5,732 additions
and
4,725 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
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: Staging" | ||
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 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,33 @@ | ||
name: 'Send GHA metrics to Datadog' | ||
on: | ||
workflow_run: | ||
workflows: | ||
- 'Content Release' | ||
types: | ||
- completed | ||
jobs: | ||
send: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 10 | ||
steps: | ||
- name: Configure AWS Credentials | ||
uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 # v4.0.2 | ||
with: | ||
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
aws-region: us-gov-west-1 | ||
|
||
# @todo: get Next Build specific API key | ||
- name: Get Datadog api key from Parameter Store | ||
uses: department-of-veterans-affairs/action-inject-ssm-secrets@d8e6de3bde4dd728c9d732baef58b3c854b8c4bb # latest | ||
with: | ||
ssm_parameter: /dsva-vagov/content-build/GHA_CONTENT_BUILD_DATADOG_API_KEY | ||
env_variable_name: GHA_CONTENT_BUILD_DATADOG_API_KEY | ||
|
||
- name: Send GitHub Actions metrics to DataDog | ||
uses: int128/datadog-actions-metrics@b55864e8d4ccab2d30f33e9eabc6e02031894555 # v1.97.0 | ||
with: | ||
datadog-api-key: ${{ env.GHA_CONTENT_BUILD_DATADOG_API_KEY }} | ||
collect-job-metrics: true | ||
collect-step-metrics: true | ||
datadog-site: ddog-gov.com |
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 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 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
Oops, something went wrong.