Skip to content

Commit ecf51c4

Browse files
committed
attempting to avoid the dockerfile and just use the docker compose
1 parent d27d508 commit ecf51c4

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
submodules: false
4949

5050
- name: Build and start Docker Compose services
51-
run: docker-compose -f docker-compose.yaml up --build -d && cd test && npm install && npm run test:local
51+
run: bash ./setup_github.sh && echo "${FRONTEND_BUILD_CONTEXT}" && docker compose -f docker-compose.yaml up --build -d && cd test && npm run test:docker
5252

5353
- name: Recursively show cwd
5454
run: |

docker-compose.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ services:
7474
- app-network
7575

7676
test:
77-
build: ./test
7877
networks:
7978
- app-network
8079
volumes:
File renamed without changes.

setup_github.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
# Set environment variables for GitHub build
22
export FRONTEND_BUILD_CONTEXT=https://${GH_TOKEN}@${FRONTEND_REPO_URL}#${FRONTEND_REF}
33
export API_BUILD_CONTEXT=https://${GH_TOKEN}@${API_REPO_URL}#${API_REF}
4-
export BACKEND_BUILD_CONTEXT=https://${GH_TOKEN}@${BACKEND_REPO_URL}#${BACKEND_REF}
4+
export BACKEND_BUILD_CONTEXT=https://${GH_TOKEN}@${BACKEND_REPO_URL}#${BACKEND_REF}
5+
6+
echo "FRONTEND_BUILD_CONTEXT=${FRONTEND_BUILD_CONTEXT}" >> .env
7+
echo "API_BUILD_CONTEXT=${API_BUILD_CONTEXT}" >> .env
8+
echo "BACKEND_BUILD_CONTEXT=${BACKEND_BUILD_CONTEXT}" >> .env

0 commit comments

Comments
 (0)