Skip to content

Commit 1b1a7a9

Browse files
committed
[action]: run docker compose up and down after 3 minutes;
get the logs meanwhile
1 parent 12cbe26 commit 1b1a7a9

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Push to Dockerhub
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
push-to-dockerhub:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v4
15+
- name: Run docker compose
16+
run: |
17+
docker compose up -d
18+
- name: Shutdown after 3 minutes
19+
run: |
20+
sleep 180
21+
docker compose logs -f
22+
docker compose down -v

0 commit comments

Comments
 (0)