Merge pull request #9286 from ForumMagnum/cached-for-non-hybrid-recom… #3787
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
name: Deploy EA Staging | |
concurrency: deploy-ea-dev | |
on: | |
push: | |
branches: [ ea-deploy, master ] | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [18.x] | |
environment: [EAForum-Staging-2] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: '>=3.5 <3.12' # Version range or exact version of a Python version to use, using SemVer's version range syntax | |
- run: pip3 install "pyyaml<5.4" && pip3 install --upgrade pip awsebcli # pip3 install "pyyaml<5.4" is a temporary workaround for this bug: https://github.com/aws/aws-elastic-beanstalk-cli/issues/441 | |
- name: Run Migrations | |
if: github.ref == 'refs/heads/master' | |
uses: ./.github/actions/runMigrations | |
with: | |
mode: staging | |
credentials-repo: ${{ secrets.CEA_CREDENTIALS_REPO }} | |
credentials-pat: ${{ secrets.CEA_CREDENTIALS_PAT }} | |
transcrypt-secret: ${{ secrets.CEA_TRANSCRYPT_SECRET }} | |
- name: Run Deploy | |
run: scripts/deploy.sh EAForum ${{ matrix.environment }} | |
env: | |
AWS_ACCESS_KEY_ID: ${{ secrets.CEA_AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.CEA_AWS_SECRET_ACCESS_KEY }} | |
AWS_DEFAULT_REGION: "us-east-1" |