From 6bf401d6499acc557472618033c267b28e8c26c6 Mon Sep 17 00:00:00 2001 From: Yshay Yaacobi Date: Tue, 1 Aug 2023 15:33:32 +0300 Subject: [PATCH] release should include tarfile --- .github/workflows/gh-release.yaml | 2 +- Dockerfile.cli | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/gh-release.yaml b/.github/workflows/gh-release.yaml index f4f418db..dcb896cb 100644 --- a/.github/workflows/gh-release.yaml +++ b/.github/workflows/gh-release.yaml @@ -26,7 +26,7 @@ jobs: with: oidc: true - name: Build using Docker (with depot) - run: depot build --project ${{ vars.DEPOT_PROJECT_ID }} --build-arg CLI_TARGET=${{ matrix.platform }}-${{ matrix.arch }} -f Dockerfile.cli --target=cli --output=type=local,dest=./preevy-bin --progress=plain --platform=linux/${{ matrix.arch == 'x64' && 'amd64' || matrix.arch }} . + run: depot build --project ${{ vars.DEPOT_PROJECT_ID }} --build-arg CLI_TARGET=${{ matrix.platform }}-${{ matrix.arch }} -f Dockerfile.cli --target=cli --output=type=tar,dest=./preevy-bin/preevy-${{ matrix.platform }}-${{ matrix.arch }} --progress=plain --platform=linux/${{ matrix.arch == 'x64' && 'amd64' || matrix.arch }} . - name: Upload artifacts uses: actions/upload-artifact@v3 with: diff --git a/Dockerfile.cli b/Dockerfile.cli index 1969de0f..87931097 100644 --- a/Dockerfile.cli +++ b/Dockerfile.cli @@ -27,7 +27,7 @@ RUN --mount=type=cache,id=livecycle/preevy-cli/pkg-cache,target=/pkg/cache \ FROM scratch as cli ARG CLI_TARGET=macos-arm64 -COPY --link --from=pkg /app/packages/cli/preevy /preevy-${CLI_TARGET} +COPY --link --from=pkg /app/packages/cli/preevy /preevy # use docker buildx build -f Dockerfile.cli --target=cli . --output=type=local,dest=./dist FROM docker:24-cli as release