Browse Source

Push latest image.

scossu 1 year ago
parent
commit
e581deaf4c
1 changed files with 4 additions and 2 deletions
  1. 4 2
      .github/workflows/push-docker-image.yml

+ 4 - 2
.github/workflows/push-docker-image.yml

@@ -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