Skip to content

Commit 2fac47a

Browse files
authored
Update docker-image.yml
1 parent 6ab62e4 commit 2fac47a

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/docker-image.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,15 @@ jobs:
1414

1515
steps:
1616
- uses: actions/checkout@v4
17+
18+
- name: Log in to Docker Hub
19+
uses: docker/login-action@v2
20+
with:
21+
username: ${{ secrets.DOCKER_USERNAME }}
22+
password: ${{ secrets.DOCKER_PASSWORD }}
23+
1724
- name: Build the Docker image
18-
run: docker build . --file Dockerfile --tag crawler:$(date +%s)
25+
run: docker build . --file Dockerfile --tag crawler:latest
26+
27+
- name: Push the Docker image
28+
run: docker push shilongli0101/crawler:latest

0 commit comments

Comments
 (0)