Update dotnetcore.yml

This commit is contained in:
Gui.H 2022-10-12 10:35:34 +08:00 committed by GitHub
parent 93f3103ed9
commit 83eb8fd402
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -93,7 +93,7 @@ jobs:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
# 构建镜像,指定镜像名 # 构建镜像,指定镜像名
- name: Build image - 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 服务器,添加方法见下图。 # 登录到 dockerhub使用 GitHub secrets 传入账号密码,密码被加密存储在 GitHub 服务器,添加方法见下图。
- name: Log into registry - name: Log into registry
run: echo "${{ secrets.DOCKERHUB_TOKEN }}" | docker login -u springhgui --password-stdin run: echo "${{ secrets.DOCKERHUB_TOKEN }}" | docker login -u springhgui --password-stdin