Skip to content

Commit

Permalink
Use environment for k3d version
Browse files Browse the repository at this point in the history
  • Loading branch information
morenol committed Oct 5, 2021
1 parent b7e0a34 commit 493c76d
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 12 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/cd_dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ on:

env:
USE_VERSION: ${{ github.event.inputs.alt_version }}

K3D_VERSION: v4.4.8

jobs:
# test fluvio in local cluster
Expand All @@ -50,7 +50,7 @@ jobs:
- name: Set up K3d for Ubuntu
if: ${{ matrix.os == 'ubuntu-latest' }}
run: |
curl -s https://raw.githubusercontent.com/rancher/k3d/main/install.sh | TAG=v4.4.8 bash
curl -s https://raw.githubusercontent.com/rancher/k3d/main/install.sh | TAG=${{ K3D_VERSION }} bash
- name: Set up K8 for ubuntu(kind)
if: ${{ matrix.os == 'ubuntu-latest' }}
run: ./k8-util/cluster/reset-k3d.sh
Expand Down Expand Up @@ -117,7 +117,7 @@ jobs:
- uses: actions/checkout@v2
- name: Setup K3d
run: |
curl -s https://raw.githubusercontent.com/rancher/k3d/main/install.sh | TAG=v4.4.8 bash
curl -s https://raw.githubusercontent.com/rancher/k3d/main/install.sh | TAG=${{ K3D_VERSION }} bash
./k8-util/cluster/reset-k3d.sh
- name: Run upgrade test
timeout-minutes: 10
Expand Down Expand Up @@ -199,7 +199,7 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Setup K3d
run: curl -s https://raw.githubusercontent.com/rancher/k3d/main/install.sh | TAG=v4.4.8 bash
run: curl -s https://raw.githubusercontent.com/rancher/k3d/main/install.sh | TAG=${{ K3D_VERSION }} bash
- name: Create K3d cluster
run: |
./k8-util/cluster/reset-k3d.sh
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/cd_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ on:

env:
USE_VERSION: ${{ github.event.inputs.alt_version }}
K3D_VERSION: v4.4.8

jobs:
installer_check:
Expand Down Expand Up @@ -77,7 +78,7 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Setup K3d
run: curl -s https://raw.githubusercontent.com/rancher/k3d/main/install.sh | TAG=v4.4.8 bash
run: curl -s https://raw.githubusercontent.com/rancher/k3d/main/install.sh | TAG=${{ K3D_VERSION }} bash
- name: Create K3d cluster
run: |
./k8-util/cluster/reset-k3d.sh
Expand Down Expand Up @@ -108,7 +109,7 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Setup K3d
run: curl -s https://raw.githubusercontent.com/rancher/k3d/main/install.sh | TAG=v4.4.8 bash
run: curl -s https://raw.githubusercontent.com/rancher/k3d/main/install.sh | TAG=${{ K3D_VERSION }} bash
- name: Create K3d cluster
run: |
./k8-util/cluster/reset-k3d.sh
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ on:
env:
CARGO_TERM_COLOR: always
VERBOSE: ${{ github.events.input.verbose }}

K3D_VERSION: v4.4.8

jobs:

Expand Down Expand Up @@ -365,7 +365,7 @@ jobs:
run: chmod +x ./fluvio ./fluvio-test && ./fluvio version
- name: Set up cluster
run: |
curl -s https://raw.githubusercontent.com/rancher/k3d/main/install.sh | TAG=v4.4.8 bash
curl -s https://raw.githubusercontent.com/rancher/k3d/main/install.sh | TAG=${{ K3D_VERSION }} bash
./k8-util/cluster/reset-k3d.sh
- name: Run smoke-test
if: ${{ matrix.test == 'smoke' }}
Expand Down Expand Up @@ -496,7 +496,7 @@ jobs:
- name: Install K3d
if: ${{ matrix.k8 == 'k3d' }}
run: |
curl -s https://raw.githubusercontent.com/rancher/k3d/main/install.sh | TAG=v4.4.8 bash
curl -s https://raw.githubusercontent.com/rancher/k3d/main/install.sh | TAG=${{ K3D_VERSION }} bash
./k8-util/cluster/reset-k3d.sh
- name: Load image to K3d
if: ${{ matrix.k8 == 'k3d' }}
Expand Down Expand Up @@ -575,7 +575,7 @@ jobs:
- uses: actions/checkout@v2
- name: Setup K3d
run: |
curl -s https://raw.githubusercontent.com/rancher/k3d/main/install.sh | TAG=v4.4.8 bash
curl -s https://raw.githubusercontent.com/rancher/k3d/main/install.sh | TAG=${{ K3D_VERSION }} bash
./k8-util/cluster/reset-k3d.sh
# Download artifacts
- name: Download artifact - fluvio
Expand Down Expand Up @@ -650,7 +650,7 @@ jobs:
- uses: actions/checkout@v2
- name: Install K3d
run: |
curl -s https://raw.githubusercontent.com/rancher/k3d/main/install.sh | TAG=v4.4.8 bash
curl -s https://raw.githubusercontent.com/rancher/k3d/main/install.sh | TAG=${{ K3D_VERSION }} bash
./k8-util/cluster/reset-k3d.sh
- name: Install stable CLI and start Fluvio cluster
run: |
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/hourly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
env:
K3D_VERSION: v4.4.8
steps:
- uses: actions/checkout@v2

Expand Down Expand Up @@ -52,7 +54,7 @@ jobs:
# If they don't match, then let's run the test

- name: Setup K3d
run: curl -s https://raw.githubusercontent.com/rancher/k3d/main/install.sh | TAG=v4.4.8 bash
run: curl -s https://raw.githubusercontent.com/rancher/k3d/main/install.sh | TAG=${{ K3D_VERSION }} bash
- name: Create K3d cluster
run: |
./k8-util/cluster/reset-k3d.sh
Expand Down

0 comments on commit 493c76d

Please sign in to comment.