Skip to content

Commit b632ac5

Browse files
authored
Merge pull request #128 from Quizzfly/test.ci
ci: update docker compose syntax
2 parents b93c9c9 + 5a4e39a commit b632ac5

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,5 @@ coverage
2929

3030
*.tsbuildinfo
3131

32-
.env
32+
.env
33+
.env.production

Jenkinsfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,20 @@ pipeline {
1010
stage('Stop Existing Container') {
1111
steps {
1212
script {
13-
sh 'docker-compose down || true'
13+
sh 'docker compose down || true'
1414
}
1515
}
1616
}
1717
stage('Build and Deploy with Docker Compose') {
1818
steps {
19-
sh 'docker-compose up --build -d'
19+
sh 'docker compose up --build -d'
2020
}
2121
}
2222
}
2323
post {
2424
always {
2525
script {
26-
sh 'docker-compose logs'
26+
sh 'docker compose logs'
2727
}
2828
}
2929
}

docker-compose.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ version: '3.8'
22

33
services:
44
quizzfly-client:
5+
image: quizzfly-client
6+
container_name: quizzfly-client
57
build:
68
context: .
79
dockerfile: Dockerfile

0 commit comments

Comments
 (0)