Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
safeer committed Oct 8, 2024
1 parent e22747e commit e993280
Showing 1 changed file with 16 additions and 10 deletions.
26 changes: 16 additions & 10 deletions .github/workflows/smoketest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,21 +21,27 @@ jobs:
run: |
latest_release=$(git tag --sort=-v:refname | grep -v v1 | head -n 1)
echo "Latest release: $latest_release"
echo "LATEST_RELEASE=$latest_release" >> "$GITHUB_ENV"
echo "LATEST_VERSION=${latest_release#v}" >> "$GITHUB_ENV"
- name: Check out the last tagged release
uses: actions/checkout@v4
with:
ref: ${{ env.LATEST_RELEASE }}
ref: v${{ env.LATEST_VERSION }}
fetch-depth: 1
fetch-tags: true
- name: Download the release images
uses: dsaltares/fetch-gh-release-asset@master
with:
repo: TBD54566975/ftl.git
version: tags/${{ env.LATEST_RELEASE }}
file: ftl-${{ env.LATEST_RELEASE:1 }}.linux-arm64.tar.gz
token: ${{ secrets.GITHUB_TOKEN }}
target: last-release.linux-arm64.tar.gz
# - name: Download the release images
# uses: dsaltares/fetch-gh-release-asset@master
# with:
# repo: TBD54566975/ftl.git
# version: tags/v${{ env.LATEST_VERSION }}
# file: ftl-${{ env.LATEST_VERSION }}.linux-arm64.tar.gz
# token: ${{ secrets.GITHUB_TOKEN }}
# target: last-release.linux-arm64.tar.gz
- name: Download the last tagged release asset
run: |
set -euo pipefail
release_url="https://github.com/TBD54566975/ftl/releases/download/v${{ env.LATEST_VERSION }}/ftl-${{ env.LATEST_VERSION }}.linux-amd64.tar.gz"
echo "Fetching latest release asset from: $release_url"
curl -L "$release_url" --output last-release.linux-amd64.tar.gz
- name: Replace deployment with release images
run: |
set -euo pipefail
Expand Down

0 comments on commit e993280

Please sign in to comment.