更新 .gitea/workflows/pms.yaml
Docker Deploy / build-and-deploy (push) Failing after 19s Details

This commit is contained in:
root 2024-08-17 19:51:06 +08:00
parent 260fe66bd8
commit 547d9aedf5
1 changed files with 4 additions and 1 deletions

View File

@ -48,15 +48,18 @@ jobs:
uses: http://${{vars.DOMAIN}}:5678/docker/build-push-action@v6
with:
push: true
context: ./cicd
context: ../../server
dockerfile: Dockerfile
#tags: ${{ vars.ALI_REGISTRY }}/${{ github.repository }}:${{ github.ref_name }}
tags: ${{env.REMOTE_IMG_NAME}} #支持env变量
username: ${{ secrets.ALI_USER }}
password: ${{ secrets.ALI_PWD }}
- name: Run On Server
run: |
docker run -d --name $CTN_NAME -p $HOST_PORT:8080 $REMOTE_IMG_NAME
# - name: SSH Deploy
# uses: easingthemes/ssh-deploy-action@v2.1.5
# env: