Skip to content

Commit

Permalink
Merge pull request RocketChat#224 from WideChat/ear_deploy_to_prod_as…
Browse files Browse the repository at this point in the history
…_well

deploy every pr tag to prod ECR as well as DEV for now
  • Loading branch information
ear-dev authored Apr 9, 2020
2 parents b140b29 + f1053b0 commit f50a368
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@ jobs:
rm Rocket.Chat.tar.gz
cp "${GITHUB_WORKSPACE}/.docker/Dockerfile" .
- name: AWS Deploy to ECR
- name: AWS Deploy to ECR in DEV
if: github.event_name == 'pull_request'

uses: Terranovax/aws-ecr-deploy@v1
Expand All @@ -521,3 +521,18 @@ jobs:
repo: widechat
tags: ${{ env.PR_TAG }}

## Temporarily we will deploy the PR tags to PROD as well as DEV
- name: AWS Deploy to ECR in PROD
if: github.event_name == 'pull_request'

uses: Terranovax/aws-ecr-deploy@v1
with:
access_key_id: ${{ secrets.AWS_PROD_ACCESS_KEY_ID }}
secret_access_key: ${{ secrets.AWS_PROD_SECRET_ACCESS_KEY }}
account_id: ${{ secrets.AWS_PROD_ACCOUNT_ID }}
region: us-east-1
dockerfile: /tmp/build/Dockerfile
path: /tmp/build
repo: widechat
tags: ${{ env.PR_TAG }}

0 comments on commit f50a368

Please sign in to comment.