Skip to content

Commit

Permalink
Add github pipeline to deploy frontend on S3 bucket
Browse files Browse the repository at this point in the history
  • Loading branch information
Utwo authored and Ovidiu-Florin BOGDAN committed May 5, 2020
1 parent 217f070 commit 0ae78ae
Show file tree
Hide file tree
Showing 9 changed files with 40 additions and 429 deletions.
183 changes: 0 additions & 183 deletions .github/disabled-workflows/deploy.yml

This file was deleted.

16 changes: 0 additions & 16 deletions .github/disabled-workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ name: CI
env:
IMAGE_PARSER: datelazi-parser
IMAGE_API: datelazi-api
IMAGE_FRONTEND: datelazi-frontend
TF_WORKSPACE: "staging"
# AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
# AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
Expand Down Expand Up @@ -44,20 +43,6 @@ jobs:
--tag $IMAGE_API:$GITHUB_SHA \
--file Dockerfile-api
build-frontend:
name: Build FrontEnd container
runs-on: ubuntu-latest

steps:
- name: Checkoout
uses: actions/checkout@v2

- name: Build Docker image
run: |
cd frontend
docker build . \
--tag $IMAGE_FRONTEND:$GITHUB_SHA
check-infra:
name: Test Infrastructure
runs-on: ubuntu-latest
Expand All @@ -69,7 +54,6 @@ jobs:
- name: "Prep TF Vars"
run: |
cat << EOF > aws_deploy/github.tfvars
IMAGE_FRONTEND = "$IMAGE_FRONTEND:$GITHUB_SHA"
IMAGE_API = "$IMAGE_API:$GITHUB_SHA"
IMAGE_PARSER = "$IMAGE_PARSER:$GITHUB_SHA"
EOF
Expand Down
52 changes: 0 additions & 52 deletions .github/workflows/deploy-frontend.yml

This file was deleted.

1 change: 1 addition & 0 deletions frontend/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
REACT_APP_API_URL=https://code4rocoviz19api-demo.azurewebsites.net/api/v2
34 changes: 0 additions & 34 deletions frontend/Dockerfile

This file was deleted.

29 changes: 0 additions & 29 deletions frontend/env.sh

This file was deleted.

Loading

0 comments on commit 0ae78ae

Please sign in to comment.