Skip to content

Commit 558c13b

Browse files
authored
added docker compose to yaml
1 parent 4965375 commit 558c13b

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

.github/workflows/main.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,12 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- uses: actions/checkout@v2
12-
- name: Build docker
12+
- name: Build and run with docker-compose
1313
run: |
14-
docker build ./one -t casperdejong02/$IMAGE_NAME
15-
- name: run docker
16-
run: |
17-
docker run -d -p 8080:8080 casperdejong02/$IMAGE_NAME:latest && \
18-
docker ps && sleep 5
14+
cd one
15+
docker-compose up --build -d
16+
docker ps
17+
sleep 10
1918
2019
- name: "Check files existence"
2120
uses: andstor/file-existence-action@v2

0 commit comments

Comments
 (0)