Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
MH321Productions committed Apr 12, 2024
1 parent d72a5f0 commit 5dce525
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 27 deletions.
44 changes: 22 additions & 22 deletions .ci/docker-compose.test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,17 @@ services:
container_name: admin-ui-test
hostname: admin-ui
image: admin-ui
build:
context: ..
dockerfile: AdminApi/src/AdminApi/Dockerfile
cache_from:
#- type=local,src=/tmp/.buildx-cache
- type=registry,ref=localhost:6000/test-adminui
cache_to:
#- type=local,dest=/tmp/.buildx-cache-new,mode=min
- type=inline
args:
DOCKER_BUILDKIT: 1
# build:
# context: ..
# dockerfile: AdminApi/src/AdminApi/Dockerfile
# cache_from:
# #- type=local,src=/tmp/.buildx-cache
# - type=registry,ref=localhost:6000/test-adminui
# cache_to:
# #- type=local,dest=/tmp/.buildx-cache-new,mode=min
# - type=inline
# args:
# DOCKER_BUILDKIT: 1
environment:
- ASPNETCORE_ENVIRONMENT=Development
ports:
Expand Down Expand Up @@ -84,17 +84,17 @@ services:
seed-client:
container_name: seed-client-test
image: seed-client
build:
context: ..
dockerfile: Modules/Devices/src/Devices.AdminCli/Dockerfile
cache_from:
#- type=local,src=/tmp/.buildx-cache
- type=registry,ref=localhost:6000/seed-client
cache_to:
#- type=local,dest=/tmp/.buildx-cache-new,mode=min
- type=inline
args:
DOCKER_BUILDKIT: 1
# build:
# context: ..
# dockerfile: Modules/Devices/src/Devices.AdminCli/Dockerfile
# cache_from:
# #- type=local,src=/tmp/.buildx-cache
# - type=registry,ref=localhost:6000/seed-client
# cache_to:
# #- type=local,dest=/tmp/.buildx-cache-new,mode=min
# - type=inline
# args:
# DOCKER_BUILDKIT: 1
depends_on:
consumer-api:
condition: service_healthy
Expand Down
2 changes: 1 addition & 1 deletion .ci/integrationTest.postgres.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ debugRun() {

{
debugRun dockerCompose down;
debugRun dockerCompose build;
# debugRun dockerCompose build;
debugRun dockerCompose up -d
} &
{
Expand Down
27 changes: 23 additions & 4 deletions .github/workflows/docker-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,20 +81,39 @@ jobs:
#- name: Run Tests
# run: python .ci/integrationTest.py build

# - name: Run local registry
# run: docker run -d -p 6000:5000 --restart=always --name registry -v /tmp/docker-registry:/var/lib/registry registry:2 && npx wait-on tcp:6000
- name: Run local registry
run: docker run -d -p 6000:5000 --restart=always --name registry -v /tmp/docker-registry:/var/lib/registry registry:2 && npx wait-on tcp:6000

- name: Build Consumer Api
uses: docker/build-push-action@v5
with:
context: .
file: ConsumerApi/Dockerfile
push: false
cache-from: type=gha
cache-to: type=gha,mode=max
tags: consumer-api
tags: localhost:6000/consumer-api
output: type=registry,dest=localhost:6000/consumer-api

- name: Build Admin Api
uses: docker/build-push-action@v5
with:
context: .
file: AdminApi/src/AdminApi/Dockerfile
cache-from: type=gha
cache-to: type=gha,mode=max
tags: localhost:6000/admin-ui
output: type=registry,dest=localhost:6000/admin-ui

- name: Build Seed Client
uses: docker/build-push-action@v5
with:
context: .
file: Modules/Devices/src/Devices.AdminCli/Dockerfile
cache-from: type=gha
cache-to: type=gha,mode=max
tags: localhost:6000/seed-client
output: type=registry,dest=localhost:6000/seed-client

- name: Run integration tests
run: ./.ci/integrationTest.postgres.sh

Expand Down

0 comments on commit 5dce525

Please sign in to comment.