Skip to content

Commit f3066b4

Browse files
committed
teste3
1 parent dfb2802 commit f3066b4

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

.github/workflows/pipe_teste.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,20 @@ jobs:
1717
uses: actions/checkout@v4
1818

1919
- name: Log in to Docker Hub
20-
uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a
20+
uses: docker/login-action@v3
2121
with:
2222
username: ${{ secrets.DOCKER_USERNAME }}
2323
password: ${{ secrets.DOCKER_PASSWORD }}
24+
25+
- name: Build Docker image
26+
uses: docker/build-push-action@v6
27+
with:
28+
context: . # mesmo que docker build .
29+
push: false # apenas build local
30+
tags: getting-started:latest
31+
32+
- name: Run container and test health
33+
run: |
34+
docker run -d -p 3000:3000 --name app getting-started
35+
sleep 5
36+
curl -f http://localhost:3000 || (docker logs app && exit 1)

0 commit comments

Comments
 (0)