diff --git a/.github/workflows/docker-ghcr.yml b/.github/workflows/docker-ghcr.yml index f85b028..d01ad3d 100644 --- a/.github/workflows/docker-ghcr.yml +++ b/.github/workflows/docker-ghcr.yml @@ -38,14 +38,16 @@ jobs: - name: Set version from input run: echo "VERSION=${{ github.event.inputs.version }}" >> $GITHUB_ENV + - name: Navigate to ghproxy directory + run: cd ghproxy + - name: Build and push Docker image run: | docker buildx build --push \ --platform linux/amd64,linux/arm64 \ --tag ghcr.io/${{ github.repository }}:${{ env.VERSION }} \ --tag ghcr.io/${{ github.repository }}:latest \ - --build-arg VERSION=${{ env.VERSION }} \ - -f ghproxy/Dockerfile . # 指定 Dockerfile 的路径 + --build-arg VERSION=${{ env.VERSION }} . env: GHCR_PUBLIC: true # 将镜像设置为公开