Skip to content

Commit

Permalink
[ci] #4303: Fix Docker Compose path for tests
Browse files Browse the repository at this point in the history
Signed-off-by: BAStos525 <jungle.vas@yandex.ru>
  • Loading branch information
BAStos525 committed Feb 20, 2024
1 parent ac3d4c9 commit efd07d9
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 12 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/iroha2-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:

env:
CARGO_TERM_COLOR: always
DOCKER_COMPOSE_PATH: configs/docker_compose

jobs:
registry:
Expand All @@ -32,16 +33,16 @@ jobs:
cache-to: type=gha,mode=max
- name: Test docker-compose.single.yml before pushing
run: |
docker compose -f docker-compose.single.yml up --wait || exit 1
docker compose -f docker-compose.single.yml down
docker compose -f ${{ env.DOCKER_COMPOSE_PATH }}/docker-compose.single.yml up --wait || exit 1
docker compose -f ${{ env.DOCKER_COMPOSE_PATH }}/docker-compose.single.yml down
- name: Test docker-compose.local.yml before pushing
run: |
docker compose -f docker-compose.local.yml up --wait || exit 1
docker compose -f docker-compose.local.yml down
docker compose -f ${{ env.DOCKER_COMPOSE_PATH }}/docker-compose.local.yml up --wait || exit 1
docker compose -f ${{ env.DOCKER_COMPOSE_PATH }}/docker-compose.local.yml down
- name: Test docker-compose.yml before pushing
run: |
docker compose -f docker-compose.yml up --wait || exit 1
docker compose -f docker-compose.yml down
docker compose -f ${{ env.DOCKER_COMPOSE_PATH }}/docker-compose.yml up --wait || exit 1
docker compose -f ${{ env.DOCKER_COMPOSE_PATH }}/docker-compose.yml down
- name: Login to DockerHub
uses: docker/login-action@v3
with:
Expand Down
13 changes: 7 additions & 6 deletions .github/workflows/iroha2-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:

env:
CARGO_TERM_COLOR: always
DOCKER_COMPOSE_PATH: configs/docker_compose

jobs:
registry:
Expand Down Expand Up @@ -42,16 +43,16 @@ jobs:
cache-to: type=gha,mode=max
- name: Test docker-compose.single.yml before pushing
run: |
docker compose -f docker-compose.single.yml up --wait || exit 1
docker compose -f docker-compose.single.yml down
docker compose -f ${{ env.DOCKER_COMPOSE_PATH }}/docker-compose.single.yml up --wait || exit 1
docker compose -f ${{ env.DOCKER_COMPOSE_PATH }}/docker-compose.single.yml down
- name: Test docker-compose.local.yml before pushing
run: |
docker compose -f docker-compose.local.yml up --wait || exit 1
docker compose -f docker-compose.local.yml down
docker compose -f ${{ env.DOCKER_COMPOSE_PATH }}/docker-compose.local.yml up --wait || exit 1
docker compose -f ${{ env.DOCKER_COMPOSE_PATH }}/docker-compose.local.yml down
- name: Test docker-compose.yml before pushing
run: |
docker compose -f docker-compose.yml up --wait || exit 1
docker compose -f docker-compose.yml down
docker compose -f ${{ env.DOCKER_COMPOSE_PATH }}/docker-compose.yml up --wait || exit 1
docker compose -f ${{ env.DOCKER_COMPOSE_PATH }}/docker-compose.yml down
- name: Login to DockerHub
uses: docker/login-action@v3
with:
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit efd07d9

Please sign in to comment.