Skip to content

Commit

Permalink
connect FE to the repo (data-for-change#2450)
Browse files Browse the repository at this point in the history
* connect FE to the repo

* run clone script in workflow
  • Loading branch information
Shai2022 authored Aug 23, 2023
1 parent 5f3c929 commit 40d328c
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/Tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ jobs:
- uses: actions/checkout@v3
- name: Starting Server and DB
run: |
cd ./anyway-newsflash-infographics/
bash run.bash
cd ../
docker-compose -f docker-compose.yml up -d --build anyway
- name: Waiting for DB startup
run: |
Expand Down
4 changes: 4 additions & 0 deletions anyway-newsflash-infographics/run.bash
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash
git clone https://github.com/data-for-change/anyway-newsflash-infographics.git
sed -i 's#https://www.anyway.co.il/#http://localhost:8080/#g' ./anyway-newsflash-infographics/.env
sed -i 's#https://dev.anyway.co.il/#http://localhost:8080/#g' ./anyway-newsflash-infographics/.env
9 changes: 9 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,15 @@ services:
restart: always
depends_on:
- db
- anyway-newsflash-infographics

anyway-newsflash-infographics:
build: ./anyway-newsflash-infographics/anyway-newsflash-infographics/.
image: anyway-newsflash-infographics:latest
container_name: anyway-newsflash-infographics
ports:
- "3000:3000"
restart: always

db:
build: db_docker
Expand Down

0 comments on commit 40d328c

Please sign in to comment.