Skip to content

Commit 464a5fe

Browse files
Fix deployment tags, paths and build context
1 parent 4df6347 commit 464a5fe

3 files changed

Lines changed: 8 additions & 4 deletions

File tree

.github/workflows/cicd.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,10 @@ jobs:
6767
steps:
6868
- name: Checkout repository
6969
uses: actions/checkout@v4
70+
- name: Prepare deployment files
71+
run: |
72+
mkdir -p cicd/mysql
73+
cp backend/schema.sql cicd/mysql/init.sql
7074
7175
- name: Copy CI/CD files to server
7276
uses: appleboy/scp-action@master

cicd/deploy.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ if [ ! -f ./nginx/certs/nginx-selfsigned.crt ]; then
2323
fi
2424

2525
# Restart services
26-
docker compose up -d --build
26+
docker compose up -d
2727

2828
# Prune unused images
2929
docker image prune -f

cicd/docker-compose.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ services:
77
dockerfile: Dockerfile
88
args:
99
- NEXT_PUBLIC_API_URL=/api/auth
10-
image: ghcr.io/syntax-error-1337/geminidemark-frontend:latest
10+
image: ghcr.io/syntax-error-1337/geminidemark-frontend:main
1111
container_name: gemini-frontend
1212
restart: always
1313
environment:
@@ -19,7 +19,7 @@ services:
1919
build:
2020
context: ../backend
2121
dockerfile: Dockerfile
22-
image: ghcr.io/syntax-error-1337/geminidemark-backend:latest
22+
image: ghcr.io/syntax-error-1337/geminidemark-backend:main
2323
container_name: gemini-backend
2424
restart: always
2525
ports:
@@ -65,7 +65,7 @@ services:
6565
MYSQL_ROOT_PASSWORD: rootpassword
6666
volumes:
6767
- mysql_data:/var/lib/mysql
68-
- ../backend/schema.sql:/docker-entrypoint-initdb.d/init.sql
68+
- ./mysql/init.sql:/docker-entrypoint-initdb.d/init.sql
6969
networks:
7070
- app-network
7171

0 commit comments

Comments
 (0)