1
0
mirror of synced 2026-01-05 12:07:35 -05:00
Commit Graph

700 Commits

Author SHA1 Message Date
James M. Greene
a9bea255a3 Use more unique job names to work around Required Checks (#21794) 2021-09-28 15:23:41 -05:00
James M. Greene
deab27360c Announce if Heroku appears to be down (#21762) 2021-09-27 20:17:05 +00:00
James M. Greene
d7aaa98c97 Move early access content over granularly (#21754) 2021-09-27 13:14:50 -05:00
James M. Greene
a76f30e5f2 Move delay for Heroku Preboot to before marking deployment successful (#21736)
* Move delay for Heroku Preboot from post-deploy to pre-success

* Shorten arbitrary delay before first Fastly purge
2021-09-24 19:35:13 -05:00
James M. Greene
6e9e5ec855 Correctly drill down to 'jobs' array (#21732) 2021-09-24 15:51:04 -05:00
James M. Greene
94e6f59d4d Explicitly define permissions needed for prod deployment (#21728) 2021-09-24 14:30:56 -05:00
James M. Greene
64bacc763a Add workflow_dispatch support to the prod deployment workflow (#21727) 2021-09-24 14:12:28 -05:00
Grace Park
9c9d47f508 Prod deployment workflow (#21223)
* add production deployment

* updating existing build

* remove state

* remove PR_URL and switch to main branch

* break out into build, prepare, and deploy

* update to download-artifact

* update staging to prod

* Actions production deployment redux (#21238)

* Simplify production deployment into a single Actions job

* Force esm to install

* Switch flag ordering to match staging deploy

* Use 'npm install' for the second installation to avoid deleting the prodDeps

* Apply Heroku upload fixes

* Include `.npmrc` file in builds to omit `optionalDeps`

* Remove download-artifact action

Co-authored-by: Grace Park <gracepark@github.com>

* Script updates to prod deployment (#21247)

* updating script to use latest sha

* changing back workflowRunLog

* remove line

* update error wording

* remove comment - using commit sha

* need release.id

* Update script/deployment/deploy-to-production.js

Co-authored-by: James M. Greene <JamesMGreene@github.com>

* remove hydro

* Update script/deployment/deploy-to-production.js

Co-authored-by: James M. Greene <JamesMGreene@github.com>

* Update .github/workflows/prod-build-deploy-pr.yml

Co-authored-by: James M. Greene <JamesMGreene@github.com>

* Update script/deployment/deploy-to-production.js

Co-authored-by: James M. Greene <JamesMGreene@github.com>

* Update script/deployment/deploy-to-production.js

Co-authored-by: James M. Greene <JamesMGreene@github.com>

* Update script/deployment/deploy-to-production.js

Co-authored-by: James M. Greene <JamesMGreene@github.com>

* updating spacing

* add 404/429 responses while polling Heroku API for prod

* removing nested ifs

* adding SOURCE_BLOB_URL

* update for early access

* add install dotenv

* need to add persist-credentials

* Testing GET request

* update request

* Rename workflow file to remove '-pr'

We are now triggering on pushes to 'main' rather than PR merges

* Remove the unnecessary workflow step to create a failure Status

Because the production deploy is done via a single workflow rather than a 2-part workflow chain, this is thankfully unnecessary

* Install all of the npm dependencies

We'll need them!

* Add the '-z' flag to 'tar' to gzip the tarball

* Pass the Heroku upload URL via env vars for security

Prevents potential injection attacks

* Log the deployment ID and log URL as deploy step outputs

* Take notice of Heroku polling resulting in failure statuses

* Add a note to consider waiting for Heroku Preboot

* Add a script and workflow step to purge Fastly

* update response to get sha

* Switch to Octokit functions instead of 'request' method

Co-authored-by: James M. Greene <JamesMGreene@github.com>
2021-09-24 16:09:08 +00:00
James M. Greene
93fe673f5f Verify build was not cancelled before reporting it as a failure (#21699) 2021-09-24 09:24:46 -05:00
James M. Greene
84d61c37ef Untar, append, and retar the deployment app archive (#21690) 2021-09-23 13:52:44 -05:00
Marcelo Jacobus
e4f7746d85 Fix broken crowdin sync action (#21624) 2021-09-23 08:50:47 -07:00
James M. Greene
bb4232c87a Allow env var to expand with double quotes (#21667) 2021-09-22 17:41:58 -05:00
James M. Greene
735b84a5c2 Checkout the whole default branch for the deployment preparation job (#21664)
* Checkout the whole default branch for the deployment preparation job
2021-09-22 21:29:48 +00:00
James M. Greene
e4c120dfd1 Checkout the top-level npm package manifests before configuring npm in the staging deployment workflow (#21661) 2021-09-22 15:27:30 -05:00
James M. Greene
2929e23008 Work around Actions inability to use env. in a job-level if (#21657) 2021-09-22 14:35:36 -05:00
Lucas Costi
a250849924 Update GHES release issue template (#21552)
Co-authored-by: Felicity Chapman <felicitymay@github.com>
2021-09-21 01:54:21 +00:00
Robert Sese
f6d85c6d64 Security: remove Docker PR build/deploy workflows (#21599)
* Remove Docker PR build/deploy workflows

* Remove supporting Docker deploy script
2021-09-17 23:17:17 +00:00
James M. Greene
b2c8af9d31 Secure early access staging deployment (#21450)
* Explicitly ensure the early access parent directories are created when cloning

* Use explicit --file flag with tar

* Remove security hole for Staging deployment by concatenating archives

* Fail the staging builds if *.js, .npmrc, or Procfile is changed in the open source repo

* docker build: extract user-code in separate directory

* Checkout PR base branch and install dependencies

* Remove one-off package installs

* Remove selective file checkout

* Don't persist git cloning credentials

It usually makes the clone of early access content fail in the later steps

* Update .github/workflows/staging-deploy-pr-docker.yml

Co-authored-by: James M. Greene <JamesMGreene@github.com>

* Update .github/workflows/staging-deploy-pr-docker.yml

Co-authored-by: James M. Greene <JamesMGreene@github.com>

* Remove debugging step

* Best practice: Use environment variables to avoid potential injection attacks if the data was user-controlled

Co-authored-by: Mike Surowiec <mikesurowiec@users.noreply.github.com>
Co-authored-by: Robert Sese <sese@github.com>
Co-authored-by: Robert Sese <robert.sese@gmail.com>
2021-09-17 22:41:13 +00:00
James M. Greene
6586056566 Only do a Staging Docker build if the branch name starts with 'docker-' (#21589) 2021-09-17 13:15:51 -05:00
James M. Greene
84f404acff Skip deploy runs that are not associated with an open PR (#21586)
'github.event.workflow_run.pull_requests' is empty if the PR that indirectly triggered it was closed before this workflow run began
2021-09-17 17:49:54 +00:00
Ramya Parimi
5edab536d2 Merge branch 'main' into ramyaparimi/close-on-invalid-label 2021-09-16 12:16:13 -05:00
James M. Greene
f1a432c31a Add debugging into the workflow_run for staging build failure notifications (#21560) 2021-09-16 10:49:37 -05:00
Ramya Parimi
a9e6e18e5a Update close-on-invalid-label.yaml 2021-09-16 06:22:07 -05:00
James M. Greene
f8dd139a38 Don't notify of failure on canceled builds (#21544)
* Only notify for staging build failures
* Only notify of docker build failures for branches starting with 'docker-'
2021-09-15 20:50:34 +00:00
James M. Greene
1c398b9016 Notify of staging build run failures from the deploy run (#21536)
* Notify of build run failures from the deploy run
2021-09-15 19:11:10 +00:00
Robert Sese
00e6831ffb Deploy workflows fixes (#21519)
* Use built-in Actions github
* Get pull number from github context
2021-09-15 16:09:34 +00:00
James M. Greene
7ae1eea3b5 Undeploy without Environment cleanup (#21530)
* Ensure we handle multiple pages of Deployments
* Do NOT delete the Environment during undeploy
* Do NOT deploy/undeploy PRs on lock/unlock events
2021-09-15 15:11:48 +00:00
Robert Sese
e6f1e4d866 Use built-in Actions github (#21516)
* Use built-in github

* Use built-in github
2021-09-14 15:57:11 -05:00
Robert Sese
af6d11544b Missing curly (#21514) 2021-09-14 14:45:15 -05:00
Mike Surowiec
5c930af422 update docubot pat naming (#21498) 2021-09-14 12:56:07 -04:00
Mike Surowiec
cb78de81f3 update DOCS_BOT -> DOCS_BOT_FR for consistent cross repo naming (#21485) 2021-09-14 15:51:50 +00:00
Ramya Parimi
88feefdc2f Update close-on-invalid-label.yaml 2021-09-14 08:41:24 -05:00
Rachael Sewell
a9c2c8eeae fix deprecation label spelling (#21474) 2021-09-13 18:12:03 +00:00
Rachael Sewell
94e3c092d3 English search sync (#21446) 2021-09-13 17:30:08 +00:00
James M. Greene
8327079a12 Revise permissions for internal board workflow (#21440)
* Only add requests to board when workflow is run internally
* Restrict GITHUB_TOKEN permissions
2021-09-13 17:09:59 +00:00
Robert Sese
6c37f45d61 Docker image deploy: set config vars (#21365)
* Add Hydro secrets as env vars

* Set app config-vars

* Add config vars previously used via app.json
2021-09-10 21:58:49 +00:00
James M. Greene
0dfab8f3df Use @docs-bot for deployment environment cleanup (#21441)
* Restrict stale app cleanup to GITHUB_TOKEN
* Use DOCS_BOT token for stale environment cleanup
2021-09-10 16:47:39 -05:00
James M. Greene
a436395a55 Skip staging deployments for closed PRs (#21425) 2021-09-10 19:47:35 +00:00
James M. Greene
a85a08cb30 Explicitly state Staging workflow permissions (#21428)
* Remove use of Secrets in Staging Build workflows... the open source repo cannot allow them for forked PRs

* Add explicit permissions matrices for all Staging workflows
2021-09-10 19:17:47 +00:00
Melanie Yarbrough
65ec6a5f5b Add docs-content issue maintenance step (#21382)
Co-authored-by: Sarah Edwards <skedwards88@github.com>
Co-authored-by: Rachael Sewell <rachmari@github.com>
Co-authored-by: Lucas Costi <lucascosti@users.noreply.github.com>
2021-09-10 13:21:57 -04:00
Sarah Edwards
e15ddfd1ed remove = from mutation ids to avoid graphql parse error (#21394) 2021-09-10 17:11:31 +00:00
James M. Greene
b507b67493 Script+workflow to remove stale staging deployment environments (#21399)
* Add a script to remove stale staging deployment environments from GitHub
* Add second job to cleanup GitHub deployment environments
* Specify GITHUB_TOKEN permissions matrix
* Stop marking staging deployments as transient
* Update staging undeployment mechanism to clean-up deployment environments on PR merge
* Define a stale PR as one that was merged or has been closed for more than 2 hours
* Rename workflow file
2021-09-10 14:43:01 +00:00
Ramya Parimi
600590728a Merge branch 'main' into ramyaparimi/close-on-invalid-label 2021-09-10 06:43:18 -05:00
Rachael Sewell
55397df156 update status for deploy timeout (#21349) 2021-09-09 23:13:57 +00:00
Robert Sese
d1ecb446d7 Scale after image release (#21398) 2021-09-09 20:08:28 +00:00
Sarah Edwards
869631cd37 Increase workflow frequency (#21389) 2021-09-09 18:55:29 +00:00
Rachael Sewell
7741796956 Update repo-freeze-reminders.yml (#21387) 2021-09-09 17:25:33 +00:00
Robert Sese
87db4aee2f Docker image deploy: scale Heroku app size (#21369)
* Scale Heroku app size

* Make Heroku key a job level env var
2021-09-09 17:17:17 +00:00
Rachael Sewell
4afdd80f2d Update sync-search-indices.yml (#21375) 2021-09-08 19:59:19 -07:00
Rachael Sewell
038cba325f observer FREEZE variable in search sync workflow (#21372) 2021-09-08 14:58:34 -07:00