Skip to content

Commit

Permalink
Merge pull request #1610 from ResearchHub/ci/add-worker-deployment
Browse files Browse the repository at this point in the history
Deploy all staging instances
  • Loading branch information
gzurowski committed May 29, 2024
2 parents ceabc51 + 4d84598 commit 78fd250
Showing 1 changed file with 30 additions and 5 deletions.
35 changes: 30 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
name: Continuous Integration

on:
# Deactivate until CI is tested:
# push:
# branches:
# - master
push:
branches:
- master
workflow_dispatch:
inputs:
git_ref:
Expand Down Expand Up @@ -65,7 +64,7 @@ jobs:
aws-region: us-west-2
output-credentials: true

- name: Deploy Staging Backend API
- name: Deploy Staging Backend - API
uses: einaregilsson/beanstalk-deploy@v22
with:
aws_access_key: ${{ steps.aws_credentials.outputs.aws-access-key-id }}
Expand All @@ -77,3 +76,29 @@ jobs:
region: us-west-2
deployment_package: target/deploy.zip
wait_for_environment_recovery: 120

- name: Deploy Staging Backend - Main Worker
uses: einaregilsson/beanstalk-deploy@v22
with:
aws_access_key: ${{ steps.aws_credentials.outputs.aws-access-key-id }}
aws_secret_key: ${{ steps.aws_credentials.outputs.aws-secret-access-key }}
application_name: backend
environment_name: staging-backend-worker-main
version_label: ${{ env.SHORT_GIT_SHA }}
use_existing_version_if_available: true
region: us-west-2
deployment_package: target/deploy.zip
wait_for_environment_recovery: 120

- name: Deploy Staging Backend - Cermine Worker
uses: einaregilsson/beanstalk-deploy@v22
with:
aws_access_key: ${{ steps.aws_credentials.outputs.aws-access-key-id }}
aws_secret_key: ${{ steps.aws_credentials.outputs.aws-secret-access-key }}
application_name: backend
environment_name: staging-backend-worker-cermine
version_label: ${{ env.SHORT_GIT_SHA }}
use_existing_version_if_available: true
region: us-west-2
deployment_package: target/deploy.zip
wait_for_environment_recovery: 120

0 comments on commit 78fd250

Please sign in to comment.