From 9d65f98a1d85e86acffb056b70c3e4549eea4af0 Mon Sep 17 00:00:00 2001 From: make-github-pseudonymous-again <5165674+make-github-pseudonymous-again@users.noreply.github.com> Date: Wed, 17 Apr 2024 21:03:34 +0200 Subject: [PATCH] :gear: config(ci): Split docker compose build-and-test workflow. --- .github/workflows/ci:build:compose.yml | 44 ++++++++++++++++++++++++-- 1 file changed, 42 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci:build:compose.yml b/.github/workflows/ci:build:compose.yml index f6c6721c0..a8bd28b09 100644 --- a/.github/workflows/ci:build:compose.yml +++ b/.github/workflows/ci:build:compose.yml @@ -22,7 +22,7 @@ jobs: runs-on: ${{ matrix.platform }} - timeout-minutes: 18 + timeout-minutes: 15 steps: - name: Checkout 🛎️ @@ -40,12 +40,52 @@ jobs: - name: Bake 🧑‍🍳 uses: docker/bake-action@v4 with: - load: true files: | compose.yaml set: | patient-web.cache-from=type=gha patient-web.cache-to=type=gha,mode=max + patient-web.output=type=docker,dest=/tmp/patient-web.tar + + - name: Upload image + uses: actions/upload-artifact@v4 + with: + name: images-patient-web + path: /tmp/patient-web.tar + retention-days: 1 + + test: + name: Continuous integration (build compose test) + + needs: + - build + + strategy: + matrix: + platform: + - ubuntu-latest + + runs-on: ${{ matrix.platform }} + + timeout-minutes: 3 + + steps: + - name: Checkout 🛎️ + uses: actions/checkout@v4 + + - name: Download image + uses: actions/download-artifact@v4 + with: + name: images-patient-web + path: /tmp/images + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + - name: Load image + run: | + docker image load --input /tmp/images/patient-web.tar + docker image ls -a - name: Start run: |