feat: add docker image #22
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Docker CI | |
| on: | |
| push: | |
| branches: [ master ] | |
| pull_request: | |
| branches: [ master ] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| platform: [linux/amd64, linux/arm64] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up QEMU | |
| if: matrix.platform == 'linux/arm64' | |
| uses: docker/setup-qemu-action@v3 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Build Docker images | |
| run: ./docker-setup.sh build ${{ matrix.platform }} | |
| - name: Test makerd | |
| run: docker run --rm --platform ${{ matrix.platform }} coinswap-maker makerd --help | |
| - name: Test taker | |
| run: docker run --rm --platform ${{ matrix.platform }} coinswap-taker taker --help | |
| - name: Test tracker | |
| run: docker run --rm --platform ${{ matrix.platform }} coinswap-tracker tracker --help | |
| - name: Run integration tests | |
| run: ./docker-setup.sh test | |
| - name: Start Coinswap stack | |
| run: ./docker-setup.sh start | |
| - name: Wait for services to be healthy | |
| run: | | |
| echo "Waiting for services to start..." | |
| sleep 30 | |
| - name: Check service status | |
| run: ./docker-setup.sh status | |
| - name: Show logs | |
| run: ./docker-setup.sh logs | |
| - name: Stop Coinswap stack | |
| run: ./docker-setup.sh stop |