From 34d493a74ba7ff32e2b5e2af4bf3b9ea64aa2c70 Mon Sep 17 00:00:00 2001 From: Nianyu Shen Date: Sat, 5 Oct 2024 16:13:00 -0700 Subject: [PATCH] ci: fix palette-agent download url in install.sh Signed-off-by: Nianyu Shen --- .github/workflows/release.yaml | 2 +- Earthfile | 10 ++++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index f7a1270..5d78b4c 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -30,7 +30,7 @@ jobs: version: "latest" use-cache: true - name: Run Release target - run: earthly --ci --output +release + run: earthly --ci --output +release --VERSION=${{ github.ref }} - name: Release uses: softprops/action-gh-release@v2 if: startsWith(github.ref, 'refs/tags/') diff --git a/Earthfile b/Earthfile index 941e08e..3d88c45 100644 --- a/Earthfile +++ b/Earthfile @@ -76,12 +76,14 @@ package-tar: install-script: FROM +ubuntu - - ARG VERSION=$(head -n 1 PE_VERSION) + + ARG VERSION + ARG PE_VERSION=$(head -n 1 PE_VERSION) ARG IMAGE_REPO=${SPECTRO_PUB_REPO}/edge - ARG AGENT_URL_PREFIX=https://github.com/spectrocloud/agent-mode/releases/latest/download + # https://github.com/spectrocloud/agent-mode/releases/download/v4.5.0-rc2/palette-agent-linux-amd64 + ARG AGENT_URL_PREFIX=https://github.com/spectrocloud/agent-mode/releases/download/${VERSION} - ENV PE_VERSION=${VERSION} + ENV PE_VERSION=${PE_VERSION} ENV IMAGE_REPO=${IMAGE_REPO} ENV AGENT_URL_PREFIX=${AGENT_URL_PREFIX}