From d33eaadde7309abead3d3839acfd32e21f7cac9a Mon Sep 17 00:00:00 2001 From: lzc256 Date: Sat, 22 Jul 2023 17:39:36 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20.github/workflows/BuildIma?= =?UTF-8?q?ge.yaml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/BuildImage.yaml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/BuildImage.yaml b/.github/workflows/BuildImage.yaml index b6a3442..3785d6b 100644 --- a/.github/workflows/BuildImage.yaml +++ b/.github/workflows/BuildImage.yaml @@ -10,6 +10,12 @@ env: DOCKER_PUSH_ADDR: ${{ env.IMAGE_NAME }} + REPO_CLONE_USERNAME: ${{ env.DOCKER_REGISTRY_USERNAME }} + REPO_CLONE_PASSWORD: ${{ env.DOCKER_REGISTRY_PASSWORD }} + REPO_PROTOCOL: https + REPO_ADDR: git.lzc256.com/lzc256/zbproxy-docker.git + + on: issue_comment: created # push: @@ -29,7 +35,12 @@ jobs: image: docker steps: # - uses: actions/checkout@v2 - + - name: Clone Repo + run: | + mkdir -p /tmp/build + cd /tmp/build + git clone $REPO_PROTOCOL://$REPO_CLONE_USERNAME:$REPO_CLONE_PASSWORD@$REPO_ADDR + - name: Login to Docker Registry run: | docker login $DOCKER_REGISTRY -u $DOCKER_REGISTRY_USERNAME -p $DOCKER_REGISTRY_PASSWORD