diff --git a/.github/workflows/dotnetcore.yml b/.github/workflows/dotnetcore.yml index 1c8ce2b..bdfc22c 100644 --- a/.github/workflows/dotnetcore.yml +++ b/.github/workflows/dotnetcore.yml @@ -93,7 +93,7 @@ jobs: - uses: actions/checkout@v2 # 构建镜像,指定镜像名 - name: Build image - run: docker build . --file Dockerfile --tag $IMAGE_NAME + run: docker build . --file Dockerfile --tag $IMAGE_NAME:$(date "+%Y.%m.%d") # 登录到 dockerhub,使用 GitHub secrets 传入账号密码,密码被加密存储在 GitHub 服务器,添加方法见下图。 - name: Log into registry run: echo "${{ secrets.DOCKERHUB_TOKEN }}" | docker login -u springhgui --password-stdin