更新 .gitea/workflows/pms.yaml
Docker Deploy / build-and-deploy (push) Failing after 19s
Details
Docker Deploy / build-and-deploy (push) Failing after 19s
Details
This commit is contained in:
parent
260fe66bd8
commit
547d9aedf5
|
@ -48,15 +48,18 @@ jobs:
|
||||||
uses: http://${{vars.DOMAIN}}:5678/docker/build-push-action@v6
|
uses: http://${{vars.DOMAIN}}:5678/docker/build-push-action@v6
|
||||||
with:
|
with:
|
||||||
push: true
|
push: true
|
||||||
context: ./cicd
|
context: ../../server
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
#tags: ${{ vars.ALI_REGISTRY }}/${{ github.repository }}:${{ github.ref_name }}
|
#tags: ${{ vars.ALI_REGISTRY }}/${{ github.repository }}:${{ github.ref_name }}
|
||||||
tags: ${{env.REMOTE_IMG_NAME}} #支持env变量
|
tags: ${{env.REMOTE_IMG_NAME}} #支持env变量
|
||||||
username: ${{ secrets.ALI_USER }}
|
username: ${{ secrets.ALI_USER }}
|
||||||
password: ${{ secrets.ALI_PWD }}
|
password: ${{ secrets.ALI_PWD }}
|
||||||
|
|
||||||
- name: Run On Server
|
- name: Run On Server
|
||||||
run: |
|
run: |
|
||||||
docker run -d --name $CTN_NAME -p $HOST_PORT:8080 $REMOTE_IMG_NAME
|
docker run -d --name $CTN_NAME -p $HOST_PORT:8080 $REMOTE_IMG_NAME
|
||||||
|
|
||||||
|
|
||||||
# - name: SSH Deploy
|
# - name: SSH Deploy
|
||||||
# uses: easingthemes/ssh-deploy-action@v2.1.5
|
# uses: easingthemes/ssh-deploy-action@v2.1.5
|
||||||
# env:
|
# env:
|
||||||
|
|
Loading…
Reference in New Issue