更新 .gitea/workflows/main.yaml
Docker Deploy / build-and-deploy (push) Has been cancelled Details

This commit is contained in:
root 2024-07-06 22:20:47 +08:00
parent a40700e833
commit 99b2d69dea
1 changed files with 9 additions and 6 deletions

View File

@ -32,17 +32,20 @@ jobs:
- uses: http://${{vars.DOMAIN}}:5678/actions/checkout@v4 - uses: http://${{vars.DOMAIN}}:5678/actions/checkout@v4
- name: Login to Alibaba Cloud Docker Registry
uses: http://${{vars.DOMAIN}}:5678/docker/login-action@v2
with:
registry: registry.cn-hangzhou.aliyuncs.com
username: ${{ vars.DOCKER_USERNAME }}
password: ${{ vars.DOCKER_TOKEN }}
- name: Build Image - name: Build Image
run: | run: |
docker stop $CTN_NAME || true docker stop $CTN_NAME || true
docker rm $CTN_NAME || true docker rm $CTN_NAME || true
docker rmi $IMG_NAME || true docker rmi $IMG_NAME || true
docker build -t $IMG_NAME . --file Dockerfile docker build -t $IMG_NAME . --file Dockerfile
# - name: Login to Docker Hub
# uses: docker/login-action@v2
# with:
# username: ${{ vars.DOCKER_USERNAME }}
# password: ${{ vars.DOCKER_TOKEN }}
# - name: Build and Push Docker Image # - name: Build and Push Docker Image
# uses: docker/build-push-action@v6 # uses: docker/build-push-action@v6