We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a06f0a9 commit fbcb851Copy full SHA for fbcb851
1 file changed
.github/workflows/docker-build.yml
@@ -0,0 +1,32 @@
1
+name: Docker Build & Push
2
+
3
+on:
4
+ workflow_dispatch:
5
+ push:
6
+ branches:
7
+ - main
8
9
+jobs:
10
+ build:
11
+ runs-on: ubuntu-latest
12
13
+ steps:
14
+ - name: Checkout repository
15
+ uses: actions/checkout@v4
16
17
+ - name: Set up Docker Buildx
18
+ uses: docker/setup-buildx-action@v3
19
20
+ - name: Login to DockerHub
21
+ uses: docker/login-action@v3
22
+ with:
23
+ username: ${{ secrets.DOCKERHUB_USERNAME }}
24
+ password: ${{ secrets.DOCKERHUB_TOKEN }}
25
26
+ - name: Build and Push Docker Image
27
+ uses: docker/build-push-action@v5
28
29
+ context: .
30
+ file: ./Dockerfile
31
+ push: true
32
+ tags: vedantoncloud/myapp:latest
0 commit comments