Skip to content

Commit

Permalink
update docker compose
Browse files Browse the repository at this point in the history
  • Loading branch information
briskt committed Jul 31, 2024
1 parent b6027a1 commit 4c62509
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 11 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ jobs:
- uses: actions/checkout@v4

- name: Unit tests
run: docker-compose -f "action-services.yml" run app bash -c "./scripts/test.sh"
run: docker compose -f "action-services.yml" run app bash -c "./scripts/test.sh"

- name: Deploy lambda
if: github.ref_name == 'main'
run: docker-compose -f "action-services.yml" run app
run: docker compose -f "action-services.yml" run app
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
build:
docker-compose up -d app
docker compose up -d app

bash:
docker-compose run --rm app bash
docker compose run --rm app bash

test:
docker-compose run --rm app ./scripts/test.sh
docker compose run --rm app ./scripts/test.sh

clean:
docker-compose kill
docker-compose rm -f
docker compose kill
docker compose rm -f
2 changes: 0 additions & 2 deletions action-services.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: "3"

services:
app:
build: .
Expand Down
2 changes: 0 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: "3"

services:
app:
build: .
Expand Down

0 comments on commit 4c62509

Please sign in to comment.