Fix cached binary in CI workflow
Caching under the '0.3.9' key, but downloading 'latest'.
This commit is contained in:
14
.github/workflows/ci.yml
vendored
14
.github/workflows/ci.yml
vendored
@@ -7,13 +7,17 @@ on:
|
|||||||
paths-ignore:
|
paths-ignore:
|
||||||
- '*.md'
|
- '*.md'
|
||||||
|
|
||||||
env:
|
|
||||||
FLEET_VERSION: '0.3.9'
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
fleet_version:
|
||||||
|
- v0.3.9
|
||||||
|
# - v0.3.10
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
-
|
-
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
@@ -24,13 +28,13 @@ jobs:
|
|||||||
id: fleet-cli-cache
|
id: fleet-cli-cache
|
||||||
with:
|
with:
|
||||||
path: /home/runner/.local/bin
|
path: /home/runner/.local/bin
|
||||||
key: ${{ runner.os }}-fleet-cli-${{ env.FLEET_VERSION }}
|
key: ${{ runner.os }}-fleet-cli-${{ matrix.fleet_version }}
|
||||||
-
|
-
|
||||||
name: Download CLI
|
name: Download CLI
|
||||||
if: steps.fleet-cli-cache.outputs.cache-hit != 'true'
|
if: steps.fleet-cli-cache.outputs.cache-hit != 'true'
|
||||||
run: |
|
run: |
|
||||||
mkdir -p /home/runner/.local/bin
|
mkdir -p /home/runner/.local/bin
|
||||||
wget -nv "https://github.com/rancher/fleet/releases/latest/download/fleet-linux-amd64"
|
wget -nv "https://github.com/rancher/fleet/releases/download/${{ matrix.fleet_version }}/fleet-linux-amd64"
|
||||||
mv fleet-linux-amd64 /home/runner/.local/bin/fleet
|
mv fleet-linux-amd64 /home/runner/.local/bin/fleet
|
||||||
chmod +x /home/runner/.local/bin/fleet
|
chmod +x /home/runner/.local/bin/fleet
|
||||||
-
|
-
|
||||||
|
|||||||
Reference in New Issue
Block a user