修复创建docker镜像时用户名存在大写问题

This commit is contained in:
Erope 2021-04-04 01:20:55 +08:00
parent 44299459ff
commit 569b3bab99

View File

@ -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