Skip to content

Commit

Permalink
website gha.md: job env variable sets LIMA_VERSION
Browse files Browse the repository at this point in the history
1. Fixes the `cache` action which was resolving
   `${{ env.LIMA_VERSION }}` to an empty string.

2. Makes the build more functional/reproducible by not getting
   LIMA_VERSION from an external source.

Signed-off-by: Sean Gilligan <[email protected]>
  • Loading branch information
msgilligan committed Jan 27, 2025
1 parent 07f091e commit 6c61a62
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion website/content/en/docs/examples/gha.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ on:
jobs:
fedora:
runs-on: ubuntu-24.04
env:
LIMA_VERSION: "v1.0.4"
steps:
- name: Check out code
uses: actions/checkout@v4
Expand All @@ -44,7 +46,6 @@ jobs:
GITHUB_TOKEN: ${{ github.token }} # required by `gh attestation verify`
run: |
set -eux
LIMA_VERSION=$(curl -fsSL https://api.github.com/repos/lima-vm/lima/releases/latest | jq -r .tag_name)
FILE="lima-${LIMA_VERSION:1}-Linux-x86_64.tar.gz"
curl -fOSL https://github.com/lima-vm/lima/releases/download/${LIMA_VERSION}/${FILE}
gh attestation verify --owner=lima-vm "${FILE}"
Expand Down

0 comments on commit 6c61a62

Please sign in to comment.