Skip to content

Commit b243561

Browse files
committed
Create docker.yml
1 parent b7b5ccc commit b243561

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

‎.github/workflows/docker.yml‎

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Build and Publish Docker Image to DockerHub
2+
3+
on:
4+
push:
5+
branches: ["main"]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- uses: actions/checkout@v3
13+
14+
- name: DockerHub Login
15+
uses: docker/login-action@v2.1.0
16+
with:
17+
username: ${{ secrets.DOCKERHUB_USERNAME }}
18+
password: ${{ secrets.DOCKERHUB_PASSWORD }}
19+
20+
- name: Build the Docker image
21+
run: docker build . --file Dockerfile --tag ${{ secrets.DOCKERHUB_USERNAME }}/simple-whatsapp-api
22+
23+
- name: Docker Push
24+
run: docker push ${{ secrets.DOCKERHUB_USERNAME }}/simple-whatsapp-api
25+

0 commit comments

Comments
 (0)