diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ac63772..0f46b8e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -39,7 +39,11 @@ jobs: submodules: 'recursive' - name: Login to GitHub Container Registry - run: echo "${{ secrets.GHCR_PAT }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} - name: Build and push Docker image run: | @@ -58,9 +62,12 @@ jobs: with: submodules: 'recursive' - # Try to use github actions here instead - name: Login to GitHub Container Registry - run: echo "${{ secrets.GHCR_PAT }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} - name: Set Docker tag run: |