diff --git a/.github/workflows/cd_dev.yaml b/.github/workflows/cd_dev.yaml index b7b86c6c94..59b2c254f5 100644 --- a/.github/workflows/cd_dev.yaml +++ b/.github/workflows/cd_dev.yaml @@ -26,7 +26,7 @@ on: env: USE_VERSION: ${{ github.event.inputs.alt_version }} - + K3D_VERSION: v4.4.8 jobs: # test fluvio in local cluster @@ -49,7 +49,8 @@ jobs: run: curl -fsS https://packages.fluvio.io/v1/install.sh | VERSION=latest bash - name: Set up K3d for Ubuntu if: ${{ matrix.os == 'ubuntu-latest' }} - uses: nolar/setup-k3d-k3s@v1 + run: | + curl -s https://raw.githubusercontent.com/rancher/k3d/main/install.sh | TAG=${{ env.K3D_VERSION }} bash - name: Set up K8 for ubuntu(kind) if: ${{ matrix.os == 'ubuntu-latest' }} run: ./k8-util/cluster/reset-k3d.sh @@ -116,7 +117,7 @@ jobs: - uses: actions/checkout@v2 - name: Setup K3d run: | - curl -s https://raw.githubusercontent.com/rancher/k3d/main/install.sh | bash + curl -s https://raw.githubusercontent.com/rancher/k3d/main/install.sh | TAG=${{ env.K3D_VERSION }} bash ./k8-util/cluster/reset-k3d.sh - name: Run upgrade test timeout-minutes: 10 @@ -198,10 +199,10 @@ jobs: steps: - uses: actions/checkout@v2 - name: Setup K3d - run: curl -s https://raw.githubusercontent.com/rancher/k3d/main/install.sh | bash + run: curl -s https://raw.githubusercontent.com/rancher/k3d/main/install.sh | TAG=${{ env.K3D_VERSION }} bash - name: Create K3d cluster run: | ./k8-util/cluster/reset-k3d.sh - name: CLI ${{ matrix.cli_version }} x Cluster ${{ matrix.cluster_version }} run: | - make FLUVIO_BIN=~/.fluvio/bin/fluvio CLI_VERSION=${{ matrix.cli_version }} CLUSTER_VERSION=${{ matrix.cluster_version }} cli-platform-cross-version-test \ No newline at end of file + make FLUVIO_BIN=~/.fluvio/bin/fluvio CLI_VERSION=${{ matrix.cli_version }} CLUSTER_VERSION=${{ matrix.cluster_version }} cli-platform-cross-version-test diff --git a/.github/workflows/cd_release.yml b/.github/workflows/cd_release.yml index 66e4e924e7..7acc0feb1f 100644 --- a/.github/workflows/cd_release.yml +++ b/.github/workflows/cd_release.yml @@ -18,6 +18,7 @@ on: env: USE_VERSION: ${{ github.event.inputs.alt_version }} + K3D_VERSION: v4.4.8 jobs: installer_check: @@ -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 | bash + run: curl -s https://raw.githubusercontent.com/rancher/k3d/main/install.sh | TAG=${{ env.K3D_VERSION }} bash - name: Create K3d cluster run: | ./k8-util/cluster/reset-k3d.sh @@ -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 | bash + run: curl -s https://raw.githubusercontent.com/rancher/k3d/main/install.sh | TAG=${{ env.K3D_VERSION }} bash - name: Create K3d cluster run: | ./k8-util/cluster/reset-k3d.sh @@ -165,4 +166,4 @@ jobs: uses: actions/upload-artifact@v2 with: name: k8_release_upgrade_log - path: /tmp/k8_*.log \ No newline at end of file + path: /tmp/k8_*.log diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4a41526b26..0158b61b34 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,7 +25,7 @@ on: env: CARGO_TERM_COLOR: always VERBOSE: ${{ github.events.input.verbose }} - + K3D_VERSION: v4.4.8 jobs: @@ -345,7 +345,6 @@ jobs: steps: - uses: actions/checkout@v2 - - uses: nolar/setup-k3d-k3s@v1 - name: Download artifact - fluvio uses: actions/download-artifact@v2 with: @@ -365,7 +364,9 @@ jobs: - name: Print artifacts and mark executable run: chmod +x ./fluvio ./fluvio-test && ./fluvio version - name: Set up cluster - run: ./k8-util/cluster/reset-k3d.sh + run: | + curl -s https://raw.githubusercontent.com/rancher/k3d/main/install.sh | TAG=${{ env.K3D_VERSION }} bash + ./k8-util/cluster/reset-k3d.sh - name: Run smoke-test if: ${{ matrix.test == 'smoke' }} timeout-minutes: 2 @@ -495,7 +496,7 @@ jobs: - name: Install K3d if: ${{ matrix.k8 == 'k3d' }} run: | - curl -s https://raw.githubusercontent.com/rancher/k3d/main/install.sh | bash + curl -s https://raw.githubusercontent.com/rancher/k3d/main/install.sh | TAG=${{ env.K3D_VERSION }} bash ./k8-util/cluster/reset-k3d.sh - name: Load image to K3d if: ${{ matrix.k8 == 'k3d' }} @@ -574,7 +575,7 @@ jobs: - uses: actions/checkout@v2 - name: Setup K3d run: | - curl -s https://raw.githubusercontent.com/rancher/k3d/main/install.sh | bash + curl -s https://raw.githubusercontent.com/rancher/k3d/main/install.sh | TAG=${{ env.K3D_VERSION }} bash ./k8-util/cluster/reset-k3d.sh # Download artifacts - name: Download artifact - fluvio @@ -649,7 +650,7 @@ jobs: - uses: actions/checkout@v2 - name: Install K3d run: | - curl -s https://raw.githubusercontent.com/rancher/k3d/main/install.sh | bash + curl -s https://raw.githubusercontent.com/rancher/k3d/main/install.sh | TAG=${{ env.K3D_VERSION }} bash ./k8-util/cluster/reset-k3d.sh - name: Install stable CLI and start Fluvio cluster run: | diff --git a/.github/workflows/hourly.yml b/.github/workflows/hourly.yml index a266aba771..54362f4ed3 100644 --- a/.github/workflows/hourly.yml +++ b/.github/workflows/hourly.yml @@ -18,6 +18,8 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest] + env: + K3D_VERSION: v4.4.8 steps: - uses: actions/checkout@v2 @@ -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 | bash + run: curl -s https://raw.githubusercontent.com/rancher/k3d/main/install.sh | TAG=${{ env.K3D_VERSION }} bash - name: Create K3d cluster run: | ./k8-util/cluster/reset-k3d.sh @@ -134,4 +136,4 @@ jobs: uses: actions/upload-artifact@v2 with: name: k8_longevity_log - path: /tmp/k8_*.log \ No newline at end of file + path: /tmp/k8_*.log