Skip to content
This repository has been archived by the owner on Dec 6, 2024. It is now read-only.

Commit

Permalink
git actions to origin (#1139)
Browse files Browse the repository at this point in the history
  • Loading branch information
janeyuaws authored Mar 7, 2023
1 parent 51b38a7 commit 2bb0354
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/deploy-integ.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,18 @@ jobs:
cp ./main/end-to-end-tests/e2eGitHubConfig.yml ./main/config/settings/${STAGE_NAME}.yml
./scripts/read-values-for-github-action.sh
./scripts/environment-deploy.sh ${STAGE_NAME}
- name: Deploy to standalone RStudio environment
env:
STAGE_NAME: dev
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID}}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_CERTIFICATE_ARN_RSTUDIO: ${{ secrets.AWS_CERTIFICATE_ARN_RSTUDIO }}
AWS_DOMAIN_NAME_RSTUDIO: ${{ secrets.AWS_DOMAIN_NAME_RSTUDIO }}
AWS_HOSTED_ZONE_ID_RSTUDIO: ${{ secrets.AWS_HOSTED_ZONE_ID_RSTUDIO }}
run: |
cp ./main/end-to-end-tests/RStudioGithubConfig.yml ./main/config/settings/${STAGE_NAME}.yml
./scripts/read-values-for-github-action-rstudio.sh
./scripts/environment-deploy.sh ${STAGE_NAME}
integration-test:
name: Integration test
runs-on: ubuntu-20.04
Expand Down
5 changes: 5 additions & 0 deletions main/end-to-end-tests/RStudioGithubConfig.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
awsRegion: us-east-1
solutionName: sw
envType: dev
createServiceCatalogPortfolio: true
portfolioId: port-fjlrngpoemjly
14 changes: 14 additions & 0 deletions scripts/read-values-for-github-action-rstudio.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash
set -e

FILE="main/config/settings/$STAGE_NAME.yml"

echo "
# Custom domain name for environment
domainName: '${AWS_DOMAIN_NAME_RSTUDIO}'
# Certs for custom domain
certificateArn: '${AWS_CERTIFICATE_ARN_RSTUDIO}'
# Hosted zone for custom domain routing
hostedZoneId: '${AWS_HOSTED_ZONE_ID_RSTUDIO}'" >> "$FILE"

0 comments on commit 2bb0354

Please sign in to comment.