Skip to content

Commit

Permalink
try docker-compose
Browse files Browse the repository at this point in the history
  • Loading branch information
callebtc committed Nov 29, 2023
1 parent f790539 commit 35a7455
Showing 1 changed file with 7 additions and 15 deletions.
22 changes: 7 additions & 15 deletions .github/workflows/nutshell-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,31 +6,23 @@ jobs:
build-and-test:
runs-on: ubuntu-latest

services:
docker:
image: docker:19.03.12
ports:
- 3338:3338
options: --privileged

steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
repository: 'cashubtc/nutshell'
token: ${{ secrets.GITHUB_TOKEN }}

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- name: Build and Run Docker Container
- name: Set up Docker Compose
run: |
docker build -t nutshell-app .
docker run -d -e MINT_LIGHTNING_BACKEND=FakeWallet -p 3338:3338 nutshell-app
sudo curl -L "https://github.com/docker/compose/releases/download/v2.2.3/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
- name: Execute Command Inside the Container
- name: Build and start services
env:
MINT_LIGHTNING_BACKEND: FakeWallet
run: |
docker exec $(docker ps -q) poetry run mint --port 3338 --host 0.0.0.0
docker-compose up -d
- name: Run Tests
uses: actions/setup-node@v3
Expand Down

0 comments on commit 35a7455

Please sign in to comment.