From c5d23867f57ebf769cb6d0209fbb7bdab2b32f4a Mon Sep 17 00:00:00 2001 From: Mike Cao Date: Thu, 8 Apr 2021 21:49:41 -0700 Subject: [PATCH] Update docker login --- .github/workflows/main.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 87b2945b..ec7dfa4c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -28,10 +28,9 @@ jobs: . - name: Docker login - env: - DOCKER_USERNAME: ${{ github.actor }} - DOCKER_PASSWORD: ${{ secrets.GITHUB_TOKEN }} - run: docker login -u "$DOCKER_USERNAME" -p "$DOCKER_PASSWORD" ghcr.io + run: >- + echo "${{ secrets.GITHUB_TOKEN }}" + | docker login -u "${{ github.actor }}" --password-stdin ghcr.io - name: Push image to GitHub run: |