diff --git a/.github/workflows/CI.yaml b/.github/workflows/CI.yaml index 0c2159f..f74394c 100644 --- a/.github/workflows/CI.yaml +++ b/.github/workflows/CI.yaml @@ -102,12 +102,13 @@ jobs: - name: Login to Docker Hub uses: docker/login-action@v3 + if: ${{ github.ref_name == 'master' }} with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_PASSWORD }} - name: Build and push - uses: docker/build-push-action@v5 + uses: docker/build-push-action@v6 if: ${{ github.ref_name == 'master' }} with: context: .