diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 9254a64..bca1d90 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -17,9 +17,12 @@ jobs: - name: Build the Docker image run: docker build . --file Dockerfile --tag ghcr.io/g-core/cert-manager-webhook-gcore:latest - - name: Log in to registry - run: echo "${{ secrets.GH_TOKEN }}" | docker login ghcr.io -u $ --password-stdin - + - name: Login to registry + uses: docker/login-action@v2 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} - name: Push the Docker image run: docker push ghcr.io/g-core/cert-manager-webhook-gcore:latest