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

【新增】New docker image for Linux and actions for auto push #52

Merged
merged 8 commits into from
Aug 22, 2024

Conversation

Eisaichen
Copy link
Contributor

@Eisaichen Eisaichen commented Aug 22, 2024

需要修改

如题,添加了Linux下的Dockerfile
并且在Push和Pull的时候会自动在github上build docker镜像,再用你的账号推送到docker.io
因此在激活actions之前需要先设置下你docker账号的凭据
(Github 项目主页> Settings > Secrets and variables > Actions)
添加DOCKERHUB_USERNAMEDOCKERHUB_TOKEN两个新secret用于推送docker镜像
如果暂时不想用,也可以先把actions禁用

完成之后将Chenyme-AAVT\.github\workflows\docker-image.yml中的tag,改为你自己的

      - name: Build and push
        uses: docker/build-push-action@v6
        with:
          context: .
          platforms: linux/amd64,linux/arm64
          pull: true
          push: true
    >     tags: chenyme/chenyme-aavt:latest,chenyme/chenyme-aavt:${{ github.sha }}

相应的,也修改下Chenyme-AAVT\docker-compose.yaml中的tag

services:
  chenyme-aavt:
    container_name: chenyme-aavt
 >  image: chenyme/chenyme-aavt:latest
    restart: unless-stopped
    networks:
      - chenyme-aavt

最后Linux下如果要输出中文硬字幕,需要先设置下中文字体,否则会输出框框
生成的文件都在output目录下

@Chenyme
Copy link
Owner

Chenyme commented Aug 22, 2024

感谢大佬!

@Chenyme Chenyme changed the title New docker image for Linux and actions for auto push 【新增】New docker image for Linux and actions for auto push Aug 22, 2024
@Chenyme Chenyme merged commit 44f35c9 into Chenyme:main Aug 22, 2024
@Chenyme
Copy link
Owner

Chenyme commented Aug 22, 2024

已经构建好了!非常感谢佬!

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

Successfully merging this pull request may close these issues.

2 participants