Skip to content

Commit a65f125

Browse files
authored
Update main.yml
1 parent 0781136 commit a65f125

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

.github/workflows/main.yml

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,26 @@
1-
name: Build and push Docker image to dockerhub
1+
name: Build and push Docker image to Docker Hub
22

33
on:
44
push:
55
branches: [ "main" ]
6-
7-
jobs:
86

7+
jobs:
98
build:
10-
119
runs-on: ubuntu-latest
1210

1311
steps:
1412
- name: Check out the repo
1513
uses: actions/checkout@v4
1614

17-
- name: Login to dockerhub
15+
- name: Login to Docker Hub
1816
uses: docker/login-action@v3
1917
with:
20-
username: ${{ secrets.DOCKER_USER_NAME }}
21-
password: ${{ secrets.DOCKER_SECERT }}
18+
username: ${{ secrets.DOCKER_USER_NAME }}
19+
password: ${{ secrets.DOCKER_SECERT }}
2220

23-
- name: Build and push to dockerhub
21+
- name: Build and push to Docker Hub
2422
uses: docker/build-push-action@v5
2523
with:
26-
context:
27-
push: true
28-
tags: hydro2070/complier:latest
24+
context: .
25+
push: true
26+
tags: hydro2070/complier:latest

0 commit comments

Comments
 (0)