Skip to content

Commit

Permalink
Remove QA from GitHub Actions workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
seanh committed Jan 25, 2024
1 parent a7d8076 commit 0ac02c3
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 80 deletions.
20 changes: 3 additions & 17 deletions .cookiecutter/includes/.github/workflows/environments.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,4 @@
{
"qa": {
"github_environment_name": "QA",
"github_environment_url": "https://qa.hypothes.is/search",
"aws_region": "us-west-1",
"elasticbeanstalk_application": "h",
"elasticbeanstalk_environment": "qa"
},
"qa_websocket": {
"github_environment_name": "QA (WebSocket)",
"github_environment_url": "https://qa.hypothes.is/docs/help",
"aws_region": "us-west-1",
"elasticbeanstalk_application": "h-websocket",
"elasticbeanstalk_environment": "qa"
},
"staging": {
"github_environment_name": "Staging",
"github_environment_url": "https://staging.hypothes.is/search",
Expand All @@ -28,23 +14,23 @@
"elasticbeanstalk_environment": "staging"
},
"production": {
"needs": ["qa", "qa_websocket"],
"needs": ["staging", "staging_websocket"],
"github_environment_name": "Production",
"github_environment_url": "https://hypothes.is/search",
"aws_region": "us-west-1",
"elasticbeanstalk_application": "h",
"elasticbeanstalk_environment": "prod"
},
"production_websocket": {
"needs": ["qa", "qa_websocket"],
"needs": ["staging", "staging_websocket"],
"github_environment_name": "Production (WebSocket)",
"github_environment_url": "https://hypothes.is/docs/help",
"aws_region": "us-west-1",
"elasticbeanstalk_application": "h-websocket",
"elasticbeanstalk_environment": "prod"
},
"production_canada": {
"needs": ["qa", "qa_websocket"],
"needs": ["staging", "staging_websocket"],
"github_environment_name": "Production (Canada)",
"github_environment_url": "https://ca.hypothes.is/search",
"aws_region": "ca-central-1",
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/data_tasks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ on:
type: choice
description: "The environment to target"
required: true
default: 'qa'
default: 'staging'
options:
- 'qa'
- 'staging'
- 'prod'
Region:
type: choice
Expand Down
32 changes: 3 additions & 29 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,32 +38,6 @@ jobs:
with:
Application: hypothesis
secrets: inherit
qa:
name: QA
needs: [docker_hub]
uses: hypothesis/workflows/.github/workflows/deploy.yml@main
with:
operation: deploy
github_environment_name: QA
github_environment_url: https://qa.hypothes.is/search
aws_region: us-west-1
elasticbeanstalk_application: h
elasticbeanstalk_environment: qa
docker_tag: ${{ needs.Docker_Hub.outputs.docker_tag }}
secrets: inherit
qa_websocket:
name: QA (WebSocket)
needs: [docker_hub]
uses: hypothesis/workflows/.github/workflows/deploy.yml@main
with:
operation: deploy
github_environment_name: QA (WebSocket)
github_environment_url: https://qa.hypothes.is/docs/help
aws_region: us-west-1
elasticbeanstalk_application: h-websocket
elasticbeanstalk_environment: qa
docker_tag: ${{ needs.Docker_Hub.outputs.docker_tag }}
secrets: inherit
staging:
name: Staging
needs: [docker_hub]
Expand Down Expand Up @@ -92,7 +66,7 @@ jobs:
secrets: inherit
production:
name: Production
needs: [docker_hub, qa, qa_websocket]
needs: [docker_hub, staging, staging_websocket]
uses: hypothesis/workflows/.github/workflows/deploy.yml@main
with:
operation: deploy
Expand All @@ -105,7 +79,7 @@ jobs:
secrets: inherit
production_websocket:
name: Production (WebSocket)
needs: [docker_hub, qa, qa_websocket]
needs: [docker_hub, staging, staging_websocket]
uses: hypothesis/workflows/.github/workflows/deploy.yml@main
with:
operation: deploy
Expand All @@ -118,7 +92,7 @@ jobs:
secrets: inherit
production_canada:
name: Production (Canada)
needs: [docker_hub, qa, qa_websocket]
needs: [docker_hub, staging, staging_websocket]
uses: hypothesis/workflows/.github/workflows/deploy.yml@main
with:
operation: deploy
Expand Down
30 changes: 0 additions & 30 deletions .github/workflows/redeploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,6 @@ concurrency:
on:
workflow_dispatch:
inputs:
qa:
type: boolean
description: Redeploy QA
qa_websocket:
type: boolean
description: Redeploy QA (WebSocket)
staging:
type: boolean
description: Redeploy Staging
Expand All @@ -27,30 +21,6 @@ on:
type: boolean
description: Redeploy Production (Canada)
jobs:
qa:
name: QA
if: inputs.qa
uses: hypothesis/workflows/.github/workflows/deploy.yml@main
with:
operation: redeploy
github_environment_name: QA
github_environment_url: https://qa.hypothes.is/search
aws_region: us-west-1
elasticbeanstalk_application: h
elasticbeanstalk_environment: qa
secrets: inherit
qa_websocket:
name: QA (WebSocket)
if: inputs.qa_websocket
uses: hypothesis/workflows/.github/workflows/deploy.yml@main
with:
operation: redeploy
github_environment_name: QA (WebSocket)
github_environment_url: https://qa.hypothes.is/docs/help
aws_region: us-west-1
elasticbeanstalk_application: h-websocket
elasticbeanstalk_environment: qa
secrets: inherit
staging:
name: Staging
if: inputs.staging
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/tasks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,8 @@ on:
type: choice
description: "The environment to target"
required: true
default: 'qa'
default: 'staging'
options:
- 'qa'
- 'staging'
- 'prod'
Timeout:
Expand Down

0 comments on commit 0ac02c3

Please sign in to comment.