From 569b3bab99a68eda6fd1222936d919345d7c0317 Mon Sep 17 00:00:00 2001 From: Erope Date: Sun, 4 Apr 2021 01:20:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=88=9B=E5=BB=BAdocker?= =?UTF-8?q?=E9=95=9C=E5=83=8F=E6=97=B6=E7=94=A8=E6=88=B7=E5=90=8D=E5=AD=98?= =?UTF-8?q?=E5=9C=A8=E5=A4=A7=E5=86=99=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/dashboard.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/dashboard.yml b/.github/workflows/dashboard.yml index 148daaa..01530cb 100644 --- a/.github/workflows/dashboard.yml +++ b/.github/workflows/dashboard.yml @@ -23,5 +23,6 @@ jobs: - name: Build and push dasbboard image run: | go test -v ./... - docker build -t ghcr.io/${{ github.repository_owner }}/nezha-dashboard -f Dockerfile . - docker push ghcr.io/${{ github.repository_owner }}/nezha-dashboard + IMAGE_NAME=$(echo "ghcr.io/${{ github.repository_owner }}/nezha-dashboard" | tr '[:upper:]' '[:lower:]') + docker build -t $IMAGE_NAME -f Dockerfile . + docker push $IMAGE_NAME