From 18397c720f952ffffe565bdfcb8ee41de2f79022 Mon Sep 17 00:00:00 2001 From: ClementMabileau Date: Sun, 3 Mar 2024 01:10:04 +0100 Subject: [PATCH] Make `docker compose` returns the container's exit code in build workflow (#29) * Trigger the same bug #22 talks about * Implement a solution * Force docker compose to return the exit code of the container * Modify use of --exit-code-from to use it well * Still up only builder container * Clean docker-compose.yml * Revert "Trigger the same bug #22 talks about" This reverts commit 6580f56ac2b060e217d4d7036921866ad256f4f2. --- .github/workflows/build_and_deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build_and_deploy.yml b/.github/workflows/build_and_deploy.yml index 5a3fa04..1095fed 100644 --- a/.github/workflows/build_and_deploy.yml +++ b/.github/workflows/build_and_deploy.yml @@ -29,7 +29,7 @@ jobs: # Build the static website with the provided docker-compose rules - name: 🛠️ Build with HUGO run: | - docker compose up builder + docker compose up builder --exit-code-from builder # Upload build artifacts for deployment or download - name: 🚀 Upload Artifacts