File tree 3 files changed +1
-30
lines changed
3 files changed +1
-30
lines changed Original file line number Diff line number Diff line change 31
31
echo "AWS_ROLE_ARN=arn:aws:iam::120317779495:role/boxel-motion" >> $GITHUB_ENV
32
32
echo "AWS_S3_BUCKET=cardstack-boxel-motion-production" >> $GITHUB_ENV
33
33
echo "AWS_CLOUDFRONT_DISTRIBUTION=ENCCIR73TMO8S" >> $GITHUB_ENV
34
- elif [ "$INPUT_ENVIRONMENT" = "staging" ]; then
35
- echo "AWS_ROLE_ARN=arn:aws:iam::680542703984:role/boxel-motion" >> $GITHUB_ENV
36
- echo "AWS_S3_BUCKET=cardstack-boxel-motion-staging" >> $GITHUB_ENV
37
- echo "AWS_CLOUDFRONT_DISTRIBUTION=E2ETE2PY0UMPR9" >> $GITHUB_ENV
38
34
else
39
35
echo "unrecognized environment"
40
36
exit 1;
Original file line number Diff line number Diff line change 34
34
uses : ./.github/workflows/deploy-motion.yml
35
35
secrets : inherit
36
36
with :
37
- environment : ${{ inputs.environment }}
37
+ environment : production
38
38
39
39
build-realm-server :
40
40
name : Build Docker image
Original file line number Diff line number Diff line change 30
30
with :
31
31
files : |
32
32
packages/boxel-motion/**
33
- deploy-motion-preview-staging :
34
- name : Deploy a boxel-motion staging preview to S3
35
- runs-on : ubuntu-latest
36
- # github.event.pull_request.head.repo.full_name == github.repository: true if pr is from the original repo, false if it's from a fork
37
- # github.head_ref: the branch that the pull request is from. only appears on pull_request events
38
- if : github.event.pull_request.head.repo.full_name == github.repository && github.head_ref && needs.check-if-requires-preview.outputs.boxel-motion-files-changed == 'true'
39
- needs : check-if-requires-preview
40
- concurrency : deploy-motion-preview-staging
41
- steps :
42
- - uses : actions/checkout@v3
43
- - name : Configure AWS credentials
44
- uses : aws-actions/configure-aws-credentials@v3
45
- with :
46
- role-to-assume : arn:aws:iam::680542703984:role/boxel-motion
47
- aws-region : us-east-1
48
- - name : Deploy boxel-motion preview
49
- uses : ./.github/actions/deploy-ember-preview
50
- env :
51
- S3_PREVIEW_BUCKET_NAME : boxel-motion-preview.stack.cards
52
- AWS_S3_BUCKET : boxel-motion-preview.stack.cards
53
- AWS_REGION : us-east-1
54
- AWS_CLOUDFRONT_DISTRIBUTION : E1MA4A64V6KZJ6
55
- with :
56
- package : boxel-motion
57
- environment : staging
58
33
59
34
deploy-motion-preview-production :
60
35
name : Deploy a boxel-motion production preview to S3
You can’t perform that action at this time.
0 commit comments