From ac70092563d7f17ff55c90655193f98fce943efb Mon Sep 17 00:00:00 2001 From: henry Date: Fri, 20 Sep 2024 14:03:34 +0800 Subject: [PATCH] fix incorrect context --- .github/workflows/build-nightly-cron.yaml | 2 +- .github/workflows/build-release-cron.yaml | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-nightly-cron.yaml b/.github/workflows/build-nightly-cron.yaml index 8d8db4e..549b0e3 100644 --- a/.github/workflows/build-nightly-cron.yaml +++ b/.github/workflows/build-nightly-cron.yaml @@ -322,7 +322,7 @@ jobs: - name: Build and Push uses: docker/build-push-action@v6 with: - context: ${{ gitea.workspace }}/docker + context: ${{ env.SOURCECODE_DIR }}/docker push: true tags: ${{ steps.meta.outputs.tags }} labels: | diff --git a/.github/workflows/build-release-cron.yaml b/.github/workflows/build-release-cron.yaml index 7dad847..2f6d641 100644 --- a/.github/workflows/build-release-cron.yaml +++ b/.github/workflows/build-release-cron.yaml @@ -296,7 +296,7 @@ jobs: # docker - name: Move .tgz to docker dir run: | - mv project/spt-server.tgz docker/spt-server.tgz + mv ${{ env.SOURCECODE_DIR }}/project/spt-server.tgz docker/spt-server.tgz - name: Extract metadata for Docker with bem version if: ${{ contains(needs.prepare.outputs.TARGET_TAG, 'BEM') }} @@ -345,7 +345,7 @@ jobs: if: ${{ contains(needs.prepare.outputs.TARGET_TAG, 'BEM') }} uses: docker/build-push-action@v6 with: - context: ${{ gitea.workspace }}/docker + context: ${{ env.SOURCECODE_DIR }}/docker push: true tags: ${{ steps.meta.outputs.tags }} labels: | @@ -359,7 +359,7 @@ jobs: if: ${{ !contains(needs.prepare.outputs.TARGET_TAG, 'BEM') }} uses: docker/build-push-action@v6 with: - context: ${{ gitea.workspace }}/docker + context: ${{ env.SOURCECODE_DIR }}/docker push: true tags: ${{ steps.meta-latest.outputs.tags }} labels: |