Update README_ZH.md #13
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Docker Image CI/CD | |
on: | |
push: | |
branches: [ main ] | |
jobs: | |
# 构建并上传 Docker镜像 | |
build: | |
runs-on: ubuntu-latest # 依赖的环境 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Build Image | |
run: | | |
docker build --platform linux/amd64 -t lumaapi/luma-api . | |
- name: Login to Registry | |
run: docker login --username=${{ secrets.DOCKER_USERNAME }} --password ${{ secrets.DOCKER_PASSWORD }} | |
- name: Push Image | |
run: | | |
docker push lumaapi/luma-api |