diff --git a/.github/workflows/build-deploy-container.yml b/.github/workflows/build-deploy-container.yml index 34ff5b066..f9482c71e 100644 --- a/.github/workflows/build-deploy-container.yml +++ b/.github/workflows/build-deploy-container.yml @@ -33,8 +33,9 @@ jobs: - name: Log in to the Container registry uses: docker/login-action@v3 with: - username: ${{ secrets.DOCKER_USERNAME }} - password: ${{ secrets.DOCKER_PASSWORD }} + registry: ${{ env.REGISTRY }} + username: ${{ github.actor }} + password: ${{ secrets.GH_TOKEN }} - name: Extract metadata (tags, labels) for Docker id: meta @@ -92,8 +93,9 @@ jobs: - name: Log in to the Container registry uses: docker/login-action@v3 with: - username: ${{ secrets.DOCKER_USERNAME }} - password: ${{ secrets.DOCKER_PASSWORD }} + registry: ${{ env.REGISTRY }} + username: ${{ github.actor }} + password: ${{ secrets.GH_TOKEN }} # Builds and push the Docker image. - name: Build and push Docker image