Skip to content

Commit 9b47b25

Browse files
authored
Update build-docker.yml
1 parent f530607 commit 9b47b25

File tree

1 file changed

+15
-19
lines changed

1 file changed

+15
-19
lines changed

.github/workflows/build-docker.yml

+15-19
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,26 @@
1-
name: Build and Push Docker Image
1+
name: Deploy
22

33
on:
44
push:
55
branches:
6-
- main
6+
- main
77

88
jobs:
9-
build-and-push:
9+
deploy:
1010
runs-on: ubuntu-latest
11-
1211
steps:
13-
- name: Checkout code
14-
uses: actions/checkout@v2
12+
- name: Login to Docker Hub
13+
uses: docker/login-action@v3
14+
with:
15+
username: ${{ secrets.DOCKER_USERNAME }}
16+
password: ${{ secrets.DOCKER_PASSWORD }}
1517

16-
- name: Set up Docker Buildx
17-
uses: docker/setup-buildx-action@v1
18+
- name: Check repository contents
19+
run: ls -l # Verify Dockerfile presence
1820

19-
- name: Login to Docker Hub
20-
uses: docker/login-action@v1
21-
with:
22-
username: ${{ secrets.DOCKER_USERNAME }}
23-
password: ${{ secrets.DOCKER_PASSWORD }}
21+
- name: Build and push Docker image
22+
uses: docker/build-push-action@v5
23+
with:
24+
push: true
25+
tags: vikram1202/picpilot:latest
2426

25-
- name: Build and push Docker image
26-
uses: docker/build-push-action@v2
27-
with:
28-
context: .
29-
push: true
30-
tags: vikram1202/picpilot:latest

0 commit comments

Comments
 (0)