Skip to content

Commit

Permalink
Issue 15952 deploy pipeline (#551)
Browse files Browse the repository at this point in the history
Co-authored-by: nfpappas-oddball <npappas@oddball>
  • Loading branch information
nfpappas-oddball and nfpappas-oddball authored Jun 10, 2024
1 parent 45d7c7d commit bd84e36
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 8 deletions.
13 changes: 12 additions & 1 deletion .github/workflows/content-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,18 @@ jobs:
env:
SRC: ./out/
DEST: s3://next-content.www.va.gov


- if: inputs.build_type =='stgprod'
name: Deploy to staging and prod
run: |
cd main
./scripts/github-actions/deploy.sh -s $SRC -d $DEST -v
./scripts/github-actions/deploy.sh -s $SRC -d $DEST2 -v
env:
SRC: ./out/
DEST: s3://next-content.staging.va.gov
DEST2: s3://next-content.dev.va.gov

- name: Export deploy end time
id: export-deploy-end-time
run: echo DEPLOY_END_TIME=$(date +"%s") >> $GITHUB_OUTPUT
Expand Down
15 changes: 15 additions & 0 deletions .github/workflows/recurring-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: recurring release
on:
workflow_dispatch:

schedule:
- cron: "*/30 8-20 * * 1-5" # run a build to prod every 30 minutes from 8am to 8pm monday to friday

jobs:
content-release:
uses: department-of-veterans-affairs/next-build/.github/workflows/content-release.yml@main
with:
build_type: "prod"
secrets: inherit


12 changes: 5 additions & 7 deletions .github/workflows/release-on-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,14 @@ name: release on push
on:
push: # build anytime there is a push to main
branches:
- main
- main
workflow_dispatch:

schedule:
- cron: "*/30 8-20 * * 1-5"

jobs:
content-release:
uses: department-of-veterans-affairs/next-build/.github/workflows/projects/next-build/.github/workflows/content-release.yml@main
uses: department-of-veterans-affairs/next-build/.github/workflows/content-release.yml@main
with:
build_type: "PROD"
runs-on: ubuntu-latest
build_type: "stgprod"
secrets: inherit


13 changes: 13 additions & 0 deletions release-on-push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: recurring release
on:
workflow_dispatch:

schedule:
- cron: '*/30 8-20 * * 1-5'

jobs:
content-release:
uses: department-of-veterans-affairs/next-build/.github/workflows/content-release.yml@main
with:
build_type: 'PROD'
secrets: inherit

0 comments on commit bd84e36

Please sign in to comment.