Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add git actions to deploy to rstudio env #1139

Merged
merged 1 commit into from
Mar 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"