From e098a055573270eeae23dd64bb3d8353785d4616 Mon Sep 17 00:00:00 2001 From: Oleksandr Lystopad Date: Fri, 2 Aug 2024 13:09:55 +0200 Subject: [PATCH] test --- .github/workflows/testing-release.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/testing-release.yml b/.github/workflows/testing-release.yml index f702560..2b42a6e 100644 --- a/.github/workflows/testing-release.yml +++ b/.github/workflows/testing-release.yml @@ -125,16 +125,22 @@ jobs: outputs: type=image,name=${{ env.DOCKERHUB_REPOSITORY }},push-by-digest=true,name-canonical=true,${{ inputs.perform_release && 'push=true' || 'push=false' }} - name: Compress Artifact for the platform ${{ matrix.arch }} + id: archiving env: - THIS_VERSION: ${{ inputs.release_version && inputs.release_version || format('SNAPSHOT-{0}',steps.GetShortCommitId.outputs.short_commit_id) }} + LOCAL_VERSION: ${{ inputs.release_version && inputs.release_version || format('SNAPSHOT-{0}',steps.GetShortCommitId.outputs.short_commit_id) }} + LOCAL_APP: ${{ env.APPLICATION }} + LOCAL_ARCH: ${{ matrix.id }} run: | - tar czvf ./${{ env.APPLICATION}}-${{ matrix.id }}-${THIS_VERSION}.tar.gz --transform "s,^,${{ env.APPLICATION}}-${{ matrix.id }}-${THIS_VERSION}/," -C src/ main + echo "Compressing archive with name ${LOCAL_APP}-${LOCAL_ARCH}-${LOCAL_VERSION}.tar.gz :" + echo "LOCAL_VERSION=${LOCAL_VERSION}" >> "$GITHUB_ENV" + echo "LOCAL_APP=${LOCAL_APP}" >> "$GITHUB_ENV" + echo "LOCAL_ARCH=${LOCAL_ARCH}" >> "$GITHUB_ENV" + tar czvf ./${LOCAL_APP}-${LOCAL_ARCH}-${LOCAL_VERSION}.tar.gz --transform "s,^,${LOCAL_APP}-${LOCAL_ARCH}-${LOCAL_VERSION}/," -C src/ main - name: Upload Artifact uses: actions/upload-artifact@v4 with: - name: ${{ github.sha }}_${{ env.APPLICATION}}-${{ matrix.id }}.tar.gz - path: ./${{ env.APPLICATION}}-${{ matrix.id }}.tar.gz + path: ./${LOCAL_APP}-${LOCAL_ARCH}-${LOCAL_VERSION}.tar.gz retention-days: 1 compression-level: 0 if-no-files-found: error