Skip to content

Commit

Permalink
Push latest image.
Browse files Browse the repository at this point in the history
  • Loading branch information
scossu committed Jan 12, 2024
1 parent 2d64c48 commit e581dea
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/push-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,13 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Build the Docker image
run: docker build . --tag $DOCKER_USER/$REPO_NAME:${{ github.ref_name }}
run: >
docker build . --tag $DOCKER_USER/$REPO_NAME:${{ github.ref_name }}
--tag $DOCKER_USER/$REPO_NAME:latest
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: lcnetdev
password: ${{ secrets.DOCKER_HUB }}
- name: Push to Docker Hub
run: docker push $DOCKER_USER/$REPO_NAME:${{ github.ref_name }}
run: docker push $DOCKER_USER/$REPO_NAME --all-tags

0 comments on commit e581dea

Please sign in to comment.