Skip to content

Commit

Permalink
Update docker-image.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
dxyinme authored Oct 20, 2023
1 parent 508d5bc commit 6fbc60b
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,16 @@ jobs:

- name: submodule
run: git submodule update --init

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build the Docker image
run: docker build . --file deployment/Dockerfile --tag dcronapp:$(date +%s)
- name: Build And Push the Docker image
env:
registry: ${{ secrets.DOCKERHUB_USERNAME }}
run: |
docker build . --file deployment/Dockerfile --tag $registry/dcron_example_app:latest
docker push $registry/dcron_example_app:latest

0 comments on commit 6fbc60b

Please sign in to comment.