Skip to content

Commit 689d89d

Browse files
committed
feat: adds workflow for image build and push to docker hub
1 parent 0cdb5b5 commit 689d89d

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/docker-hub.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: docker-hub
2+
3+
on:
4+
workflow_run:
5+
workflows: ["artifact"]
6+
types:
7+
- success
8+
9+
jobs:
10+
docker:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: checkout code
14+
uses: actions/checkout@v4
15+
16+
- name: login DockerHub
17+
uses: docker/login-action@v3
18+
with:
19+
username: ${{ secrets.DOCKER_USERNAME }}
20+
password: ${{ secrets.DOCKER_PASSWORD }}
21+
22+
- name: Build and push
23+
uses: docker/build-push-action@v6
24+
with:
25+
push: true
26+
tags: ${{ secrets.DOCKER_USERNAME }}/api-catalogo:latest

0 commit comments

Comments
 (0)