Skip to content

Commit

Permalink
Merge pull request #112 from wdr-data/develop
Browse files Browse the repository at this point in the history
Deployment with tracking
  • Loading branch information
cami-espinozaq authored Nov 8, 2023
2 parents 4fa4dc6 + 0bcfc07 commit e931f8f
Show file tree
Hide file tree
Showing 93 changed files with 2,597 additions and 66 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/develop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: staging deployment v1

on:
push:
branches:
- develop

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x]
python-version: [3.0]
env:
S3_BUCKET_PREFIX: hackingstudio-code4maus-projects
AWS_REGION: eu-central-1
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
steps:
- name: Checkout app
uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: before install dep
run: |
sudo apt-get install -y python3-pip python3-setuptools libcups2-dev
pip3 install --user awscli
export PATH=$PATH:$HOME/.local/bin
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
aws-access-key-id: ${{ env.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ env.AWS_SECRET_ACCESS_KEY }}
aws-region: ${{ env.AWS_REGION }}
- name: Install dependencies
run: |
yarn install
- name: build app
run: NODE_ENV=production yarn build
- name: serverless deploy
run: SLS_STAGE=staging BRANCH=develop yarn deploy
47 changes: 47 additions & 0 deletions .github/workflows/production.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: production deployment v1

on:
push:
branches:
- production
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x]
python-version: [3.0]
env:
S3_BUCKET_PREFIX: hackingstudio-code4maus-projects
AWS_REGION: eu-central-1
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
steps:
- name: Checkout app
uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: before install dep
run: |
sudo apt-get install -y python3-pip python3-setuptools libcups2-dev
pip3 install --user awscli
export PATH=$PATH:$HOME/.local/bin
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
aws-access-key-id: ${{ env.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ env.AWS_SECRET_ACCESS_KEY }}
aws-region: ${{ env.AWS_REGION }}
- name: Install dependencies
run: |
yarn install
- name: build app
run: NODE_ENV=production yarn build
- name: serverless deploy
run: SLS_STAGE=prod BRANCH=production yarn deploy
5 changes: 1 addition & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@ npm-*
.env
.env.backend

# External assets
/assets/

# Cache
/.cache/
.webpack/
Expand All @@ -43,4 +40,4 @@ yarn-error.log
.vscode/

# Jupyter Checkpoints
.ipynb_checkpoints/
.ipynb_checkpoints/
88 changes: 88 additions & 0 deletions assets/blocks-media/green-flag.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions assets/blocks-media/zoom-in.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions assets/blocks-media/zoom-out.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions assets/blocks-media/zoom-reset.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions assets/icons/header_menu.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions assets/icons/header_open.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
69 changes: 69 additions & 0 deletions assets/icons/header_save.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
70 changes: 70 additions & 0 deletions assets/icons/icon_aussehen.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit e931f8f

Please sign in to comment.