Skip to content

Commit

Permalink
Update docker-image.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ShilongLee authored Jun 10, 2024
1 parent 6ab62e4 commit 2fac47a
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,15 @@ jobs:

steps:
- uses: actions/checkout@v4

- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Build the Docker image
run: docker build . --file Dockerfile --tag crawler:$(date +%s)
run: docker build . --file Dockerfile --tag crawler:latest

- name: Push the Docker image
run: docker push shilongli0101/crawler:latest

0 comments on commit 2fac47a

Please sign in to comment.