Skip to content

Commit

Permalink
ci: migrate to docker compose v2 CLI in stable and dev pipelines [ski…
Browse files Browse the repository at this point in the history
…p ci] (#18834)

Signed-off-by: Rado <[email protected]>
  • Loading branch information
radnov authored Oct 16, 2024
1 parent be67efb commit 1c467de
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/run-api-analytics-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ jobs:
if: failure()
run: |
cd dhis-2/dhis-test-e2e
docker-compose logs web > ~/logs.txt
docker compose logs web > ~/logs.txt
- uses: actions/upload-artifact@v4
if: failure()
Expand Down
4 changes: 2 additions & 2 deletions jenkinsfiles/dev
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ pipeline {
script {
dir("dhis-2/dhis-test-e2e") {
sh "docker pull ${DOCKER_IMAGE_NAME_FULL}"
sh "DHIS2_IMAGE=${DOCKER_IMAGE_NAME_FULL} docker-compose --project-name ${DOCKER_IMAGE_TAG_BASE} --file docker-compose.yml --file docker-compose.e2e.yml up --remove-orphans --exit-code-from test"
sh "DHIS2_IMAGE=${DOCKER_IMAGE_NAME_FULL} docker compose --project-name ${DOCKER_IMAGE_TAG_BASE} --file docker-compose.yml --file docker-compose.e2e.yml up --remove-orphans --exit-code-from test"
}
}
}
Expand All @@ -106,7 +106,7 @@ pipeline {
failure {
script {
dir("dhis-2/dhis-test-e2e") {
sh "docker-compose --project-name ${DOCKER_IMAGE_TAG_BASE} logs web > ${DOCKER_IMAGE_TAG_BASE}_logs.txt"
sh "docker compose --project-name ${DOCKER_IMAGE_TAG_BASE} logs web > ${DOCKER_IMAGE_TAG_BASE}_logs.txt"
archiveArtifacts artifacts: "${DOCKER_IMAGE_TAG_BASE}_logs.txt"
}
}
Expand Down
4 changes: 2 additions & 2 deletions jenkinsfiles/stable
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ pipeline {
script {
dir("dhis-2/dhis-test-e2e") {
sh "docker pull ${DOCKER_IMAGE_NAME_FULL}"
sh "DHIS2_IMAGE=${DOCKER_IMAGE_NAME_FULL} docker-compose --project-name ${DOCKER_IMAGE_TAG_BASE} --file docker-compose.yml --file docker-compose.e2e.yml up --remove-orphans --exit-code-from test"
sh "DHIS2_IMAGE=${DOCKER_IMAGE_NAME_FULL} docker compose --project-name ${DOCKER_IMAGE_TAG_BASE} --file docker-compose.yml --file docker-compose.e2e.yml up --remove-orphans --exit-code-from test"
}
}
}
Expand All @@ -114,7 +114,7 @@ pipeline {
failure {
script {
dir("dhis-2/dhis-test-e2e") {
sh "docker-compose --project-name ${DOCKER_IMAGE_TAG_BASE} logs web > ${DOCKER_IMAGE_TAG_BASE}_logs.txt"
sh "docker compose --project-name ${DOCKER_IMAGE_TAG_BASE} logs web > ${DOCKER_IMAGE_TAG_BASE}_logs.txt"
archiveArtifacts artifacts: "${DOCKER_IMAGE_TAG_BASE}_logs.txt"
}
}
Expand Down

0 comments on commit 1c467de

Please sign in to comment.