From 5f6a893684618e8dbe732af9bae6285e49248c02 Mon Sep 17 00:00:00 2001 From: Emily McMullan Date: Tue, 1 Oct 2024 16:38:51 -0400 Subject: [PATCH] Add release artifacts for containerless cmd (#344) add release artifacts for containerless cmd Signed-off-by: Emily McMullan --- .github/workflows/release-artifacts.yaml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.github/workflows/release-artifacts.yaml b/.github/workflows/release-artifacts.yaml index f650a92..1c6af31 100644 --- a/.github/workflows/release-artifacts.yaml +++ b/.github/workflows/release-artifacts.yaml @@ -42,6 +42,25 @@ jobs: podman cp kantra-download:/usr/local/bin/darwin-kantra . && zip kantra.darwin.${{ matrix.arch }}.zip darwin-kantra podman cp kantra-download:/usr/local/bin/windows-kantra windows-kantra.exe && zip kantra.windows.${{ matrix.arch }}.zip windows-kantra.exe + - name: Extract containerless reqs + run: | + image=quay.io/konveyor/kantra:${{ steps.release_info.outputs.tag_name }} + podman create --name kantra-download ${image} + podman cp kantra-download:/jdtls . && zip -r kantra.linux.${{ matrix.arch }}.zip jdtls + podman cp kantra-download:/bin/fernflower.jar . && zip kantra.linux.${{ matrix.arch }}.zip fernflower.jar + podman cp kantra-download:/usr/local/static-report . && zip -r kantra.linux.${{ matrix.arch }}.zip static-report + podman cp kantra-download:/opt/rulesets . && zip -r kantra.linux.${{ matrix.arch }}.zip rulesets + + podman cp kantra-download:/jdtls . && zip -r kantra.darwin.${{ matrix.arch }}.zip jdtls + podman cp kantra-download:/bin/fernflower.jar . && zip kantra.darwin.${{ matrix.arch }}.zip fernflower.jar + podman cp kantra-download:/usr/local/static-report . && zip -r kantra.darwin.${{ matrix.arch }}.zip static-report + podman cp kantra-download:/opt/rulesets . && zip -r kantra.darwin.${{ matrix.arch }}.zip rulesets + + podman cp kantra-download:/jdtls . && zip -r kantra.windows.${{ matrix.arch }}.zip jdtls + podman cp kantra-download:/bin/fernflower.jar . && zip kantra.windows.${{ matrix.arch }}.zip fernflower.jar + podman cp kantra-download:/usr/local/static-report . && zip -r kantra.windows.${{ matrix.arch }}.zip static-report + podman cp kantra-download:/opt/rulesets . && zip -r kantra.windows.${{ matrix.arch }}.zip rulesets + - name: Upload linux binary uses: actions/upload-release-asset@v1 env: @@ -72,3 +91,4 @@ jobs: asset_name: kantra.darwin.${{ matrix.arch }}.zip asset_content_type: application/zip +