From b720088135c767d5ac9aae93f054cf5d5046dcfb Mon Sep 17 00:00:00 2001 From: Donkie Date: Thu, 18 May 2023 16:10:14 +0200 Subject: [PATCH] Another attempt at splitting up into multiple jobs --- .github/workflows/integration-test.yml | 25 ++++++++++++++++++++----- 1 file changed, 20 insertions(+), 5 deletions(-) diff --git a/.github/workflows/integration-test.yml b/.github/workflows/integration-test.yml index 55565a8..eec8262 100644 --- a/.github/workflows/integration-test.yml +++ b/.github/workflows/integration-test.yml @@ -7,9 +7,6 @@ on: branches: - master -env: - TEST_TAG: donkie/spoolman:test - jobs: build: runs-on: ubuntu-latest @@ -22,8 +19,13 @@ jobs: uses: docker/build-push-action@v4 with: context: . - load: true tags: donkie/spoolman:test + outputs: type=docker,dest=/tmp/spoolman.tar + - name: Upload artifact + uses: actions/upload-artifact@v3 + with: + name: spoolman + path: /tmp/spoolman.tar build-tester: runs-on: ubuntu-latest steps: @@ -35,8 +37,13 @@ jobs: uses: docker/build-push-action@v4 with: context: ./tests_integration - load: true tags: donkie/spoolman-tester:latest + outputs: type=docker,dest=/tmp/spoolman-tester.tar + - name: Upload artifact + uses: actions/upload-artifact@v3 + with: + name: spoolman-tester + path: /tmp/spoolman-tester.tar tests: needs: [build, build-tester] strategy: @@ -46,6 +53,14 @@ jobs: steps: - name: Checkout uses: actions/checkout@v3 + - name: Download built images + uses: actions/download-artifact@v3 + with: + path: /tmp + - name: Load images + run: | + docker load --input /tmp/spoolman.tar + docker load --input /tmp/spoolman-tester.tar - uses: isbang/compose-action@v1.4.1 with: compose-file: "./tests_integration/docker-compose-${{ matrix.dbtype }}.yml"