更新 .gitea/workflows/main.yaml
Docker Deploy / build-and-deploy (push) Failing after 7s
Details
Docker Deploy / build-and-deploy (push) Failing after 7s
Details
This commit is contained in:
parent
d8ee3b9107
commit
faa3ab54c2
|
@ -11,8 +11,8 @@ jobs:
|
|||
runs-on: runner
|
||||
env:
|
||||
HOST_PORT: 8080
|
||||
ALI_REGISTRY: "${{REGISTRY}}"
|
||||
REPO: "${{REPO}}"
|
||||
REGISTRY: "${{ALI_REGISTRY}}"
|
||||
REPO: "${{ALI_REPO}}"
|
||||
CTN_NAME: "ctn-pms-demo"
|
||||
IMG_NAME: "${{ github.repository }}:${{ github.ref_name }}"
|
||||
REMOTE_IMG_NAME: "${{REGISTRY}}/${{REPO}}/${{ github.repository }}:${{ github.ref_name }}"
|
||||
|
@ -39,8 +39,8 @@ jobs:
|
|||
uses: http://${{vars.DOMAIN}}:5678/docker/login-action@v3
|
||||
with:
|
||||
registry: $ALI_REGISTRY
|
||||
username: ${{ vars.DOCKER_USERNAME }}
|
||||
password: ${{ vars.DOCKER_TOKEN }}
|
||||
username: ${{ vars.ALI_USER }}
|
||||
password: ${{ vars.ALI_PWD }}
|
||||
|
||||
- name: Remove Container & Image
|
||||
run: |
|
||||
|
@ -55,8 +55,8 @@ jobs:
|
|||
push: true
|
||||
context: . Dockerfile
|
||||
tags: $REMOTE_IMG_NAME
|
||||
# username: ${{ vars.DOCKER_USERNAME }}
|
||||
# password: ${{ vars.DOCKER_TOKEN }}
|
||||
# username: ${{ vars.ALI_USER }}
|
||||
# password: ${{ vars.ALI_PWD }}
|
||||
- name: Run On Server
|
||||
run: |
|
||||
docker run -d --name $CTN_NAME -p $HOST_PORT:8080 $REMOTE_IMG_NAME
|
||||
|
|
Loading…
Reference in New Issue