Attempt to fix build issue 3
This commit is contained in:
19
.github/workflows/integration-test.yml
vendored
19
.github/workflows/integration-test.yml
vendored
@@ -7,6 +7,9 @@ on:
|
|||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
|
|
||||||
|
env:
|
||||||
|
TEST_TAG: donkie/spoolman:test
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
tests:
|
tests:
|
||||||
strategy:
|
strategy:
|
||||||
@@ -16,8 +19,22 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v2
|
||||||
|
- name: Build Spoolman
|
||||||
|
uses: docker/build-push-action@v4
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
load: true
|
||||||
|
tags: donkie/spoolman:test
|
||||||
|
- name: Build Spoolman Tester
|
||||||
|
uses: docker/build-push-action@v4
|
||||||
|
with:
|
||||||
|
context: ./tests_integration
|
||||||
|
load: true
|
||||||
|
tags: donkie/spoolman-tester:latest
|
||||||
- uses: isbang/compose-action@v1.4.1
|
- uses: isbang/compose-action@v1.4.1
|
||||||
with:
|
with:
|
||||||
compose-file: "./tests_integration/docker-compose-${{ matrix.dbtype }}.yml"
|
compose-file: "./tests_integration/docker-compose-${{ matrix.dbtype }}.yml"
|
||||||
up-flags: "--build --abort-on-container-exit"
|
up-flags: "--abort-on-container-exit"
|
||||||
down-flags: "--volumes"
|
down-flags: "--volumes"
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
- POSTGRES_PASSWORD=abc
|
- POSTGRES_PASSWORD=abc
|
||||||
spoolman:
|
spoolman:
|
||||||
build: ./../
|
image: donkie/spoolman:test
|
||||||
environment:
|
environment:
|
||||||
- SPOOLMAN_DB_TYPE=postgres
|
- SPOOLMAN_DB_TYPE=postgres
|
||||||
- SPOOLMAN_DB_HOST=db
|
- SPOOLMAN_DB_HOST=db
|
||||||
@@ -17,7 +17,7 @@ services:
|
|||||||
depends_on:
|
depends_on:
|
||||||
- db
|
- db
|
||||||
tester:
|
tester:
|
||||||
build: .
|
image: donkie/spoolman-tester:latest
|
||||||
volumes:
|
volumes:
|
||||||
- ./tests:/tester/tests
|
- ./tests:/tester/tests
|
||||||
depends_on:
|
depends_on:
|
||||||
|
|||||||
Reference in New Issue
Block a user