Skip to content

Commit 912f7fb

Browse files
Added CI pipeline hamzaavvan#10
1 parent 3f7a9f3 commit 912f7fb

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,13 @@ jobs:
2424
run: |
2525
echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin
2626
27+
# ✅ Add .env file before build
28+
- name: Create .env file
29+
run: |
30+
echo "DB_USER=root" >> .env
31+
echo "DB_PASSWORD=${{ secrets.DB_PASSWORD }}" >> .env
32+
echo "DB_NAME=library" >> .env
33+
2734
# 4️⃣ Build all images from docker-compose
2835
- name: Build Docker images
2936
run: |

0 commit comments

Comments
 (0)