Skip to content

Commit

Permalink
added gha for web deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
rer145 committed Nov 7, 2023
1 parent 93c2f8b commit 73a0cae
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/deploy-web.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Deploy web to S3
on: workflow_dispatch
jobs:
run:
runs-on: ubuntu-latest
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY_ID }}
AWS_REGION: ${{ vars.AWS_DEFAULT_REGION }}
steps:
- name: Checkout Code
uses: actions/checkout@v1

- name: Deploy
uses: reggionick/s3-deploy@v3
with:
folder: mamd-web
bucket: ${{ vars.PRODUCTION_S3_BUCKET }}
bucket-region: ${{ vars.AWS_DEFAULT_REGION }}
dist-id: ${{ vars.PRODUCTION_CLOUDFRONT_DISTRIBUTION_ID }}
invalidation: /
delete-removed: true
no-cache: true
private: true
filesToInclude: ".*/*,*/*,**"
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ docker push rer145/mamd-api-base

The mamd-api project builds a Docker container with the analytical data and script to perform the analysis. It relies on the mamd-api-base to setup rstudio/plumber and constantly runs, waiting for inputs from the mamd-web project.

This container is currently running on an AWS Lightsail instance (Micro x1 - 1gb, 0.25 vCPUs).

**Building/Deploying**
```
docker build -t mamd-api .
Expand Down

0 comments on commit 73a0cae

Please sign in to comment.