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