Skip to content

Commit

Permalink
ci: fix palette-agent download url in install.sh
Browse files Browse the repository at this point in the history
Signed-off-by: Nianyu Shen <[email protected]>
  • Loading branch information
nianyush committed Oct 5, 2024
1 parent 91c1d15 commit 34d493a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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/')
Expand Down
10 changes: 6 additions & 4 deletions Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -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}

Expand Down

0 comments on commit 34d493a

Please sign in to comment.