Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
HsiangNianian committed Apr 11, 2023
1 parent dae72a9 commit b8f9405
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 42 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@ jobs:
run: docker build . --file Dockerfile --tag $IMAGE_NAME
# 登录到 dockerhub,使用 GitHub secrets 传入账号密码,密码被加密存储在 GitHub 服务器,添加方法见下图。
- name: Log into registry
run: echo "${{ secrets.DOCKER_TOKEN }}" | docker login -u libra146 --password-stdin
run: echo "${{ secrets.DOCKER_TOKEN }}" | docker login -u HsiangNianian -p ${{ secrets.DOCKER_PWD }}

- name: Push image
run: |
# 拼接镜像 id,这个镜像 id 就是在使用 docker 镜像时 pull 后面的名字。
IMAGE_ID=libra146/$IMAGE_NAME
IMAGE_ID=HsiangNianian/$IMAGE_NAME
# 将所有的大写字母转为小写
IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]')
Expand Down
40 changes: 0 additions & 40 deletions .github/workflows/python-package.yml

This file was deleted.

0 comments on commit b8f9405

Please sign in to comment.