Skip to content

Commit

Permalink
ci: add docker compose
Browse files Browse the repository at this point in the history
Signed-off-by: aleksandrstrokov <busyfifer@gmail.com>
  • Loading branch information
aleksandrstrokov committed Aug 19, 2024
1 parent 3e4b412 commit d9fe7d0
Showing 1 changed file with 23 additions and 3 deletions.
26 changes: 23 additions & 3 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,30 @@ jobs:
git diff --quiet
pytest:
runs-on: iroha-ubuntu-latest
container: rust:1.65-buster
runs-on: [self-hosted, Linux, iroha2]
timeout-minutes: 60
steps:
- uses: actions/checkout@v3
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v3
with:
install: true
- name: Build and Tag Docker Images
uses: docker/build-push-action@v6
if: always()
with:
context: .
load: true
file: Dockerfile
tags: |
hyperledger/iroha:local
hyperledger/iroha:dev
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Run docker-compose.yml containers
run: docker compose -f ${{ env.DOCKER_COMPOSE_PATH }}/docker-compose.yml up --wait || exit 1
- name: Install dependencies
run: |
apt-get update
Expand Down

0 comments on commit d9fe7d0

Please sign in to comment.