Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CI]增加发版时自动推送docker image流水线 #3489

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

fishandsheep
Copy link

What kind of change does this PR introduce? (check at least one)

  • Other : [CI]增加发版时自动推送docker image流水线

The description of the PR:
dockerhub上目前不存在latest版本的image,导致拉取时必须要指定版本

root@10-7-154-170:~# docker pull xuxueli/xxl-job-admin
Using default tag: latest
Error response from daemon: manifest for xuxueli/xxl-job-admin:latest not found: manifest unknown: manifest unknown
root@10-7-154-170:~# 

创建release版本时,增加自动推动流水线的CI流程,镜像仓库已经改成xuxueli/xxl-job-admin

        - name: Docker meta
          id: meta
          uses: docker/metadata-action@v5
          with:
            images: xuxueli/xxl-job-admin

特别注意,需要在仓库的Settings - Secrets and variables - Actions - Repository secrets中定义DOCKERHUB_USERNAMEDOCKERHUB_TOKEN的值

        - name: Login to Docker Hub
          uses: docker/login-action@v3
          with:
            username: ${{ secrets.DOCKERHUB_USERNAME }}
            password: ${{ secrets.DOCKERHUB_TOKEN }}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant