We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dfb2802 commit f3066b4Copy full SHA for f3066b4
.github/workflows/pipe_teste.yml
@@ -17,7 +17,20 @@ jobs:
17
uses: actions/checkout@v4
18
19
- name: Log in to Docker Hub
20
- uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a
+ uses: docker/login-action@v3
21
with:
22
username: ${{ secrets.DOCKER_USERNAME }}
23
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