From 547d9aedf5ce40ae8e7f9696e453c2dec1ab0934 Mon Sep 17 00:00:00 2001 From: root Date: Sat, 17 Aug 2024 19:51:06 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20.gitea/workflows/pms.yaml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/pms.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/pms.yaml b/.gitea/workflows/pms.yaml index 217655f3..ec65a18a 100644 --- a/.gitea/workflows/pms.yaml +++ b/.gitea/workflows/pms.yaml @@ -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: