1
0
镜像自地址 https://github.com/devcm-repo/container-images.git 已同步 2026-06-06 04:21:06 +00:00
文件
container-images/.github/workflows/release.yml
T
工作流配置文件无效。请检查您的配置文件:invalid jobs: input node is not a mapping node
2024-06-24 18:08:31 +08:00

23 行
770 B
YAML

steps:
- name: Check out the repo
uses: actions/checkout@v3
- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }} # 配置dockerhub的认证,在Github项目主页 【Settings】 -> 【Secrets】 添加对应变量
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v3 # 抽取项目信息,主要是镜像的tag
with:
images: kkkk24/chatgpt_academic
- name: Build and push Docker image
uses: docker/build-push-action@v4 # docker build & push
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}