Skip to content

Commit

Permalink
chore: use ctx ci for installations (#3767)
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoBorai authored Dec 8, 2023
1 parent 37afe2f commit 5d3e3d1
Show file tree
Hide file tree
Showing 13 changed files with 18 additions and 18 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/cd_dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ jobs:
run: ./k8-util/cluster/reset-k3d.sh
- name: Install Fluvio CLI
run: |
curl -fsS https://hub.infinyon.cloud/install/install.sh | FLUVIO_VERSION=latest bash
curl -fsS https://hub.infinyon.cloud/install/install.sh?ctx=ci | FLUVIO_VERSION=latest bash
echo "$HOME/.fluvio/bin" >> $GITHUB_PATH
- name: Install Local Fluvio cluster
timeout-minutes: 3
Expand Down Expand Up @@ -208,7 +208,7 @@ jobs:
# Utilizes the env var set in the previous step
- name: Curl Install
run: curl -fsS https://hub.infinyon.cloud/install/install.sh | bash | tee /tmp/installer.version
run: curl -fsS https://hub.infinyon.cloud/install/install.sh?ctx=ci | bash | tee /tmp/installer.version

- name: Verify installer output
run: |
Expand Down Expand Up @@ -248,7 +248,7 @@ jobs:
- name: Install stable CLI and start Fluvio cluster
timeout-minutes: 10
run: |
curl -fsS https://hub.infinyon.cloud/install/install.sh | VERSION=${{ matrix.cluster_version }} bash
curl -fsS https://hub.infinyon.cloud/install/install.sh?ctx=ci | VERSION=${{ matrix.cluster_version }} bash
fluvio cluster start --local
- name: CLI ${{ matrix.cli_version }} x Cluster ${{ matrix.cluster_version }}
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cd_dev_mac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:
kind create cluster --config k8-util/cluster/kind.yaml
- name: Install Fluvio CLI
run: |
curl -fsS https://hub.infinyon.cloud/install/install.sh | VERSION=latest bash
curl -fsS https://hub.infinyon.cloud/install/install.sh?ctx=ci | VERSION=latest bash
echo "$HOME/.fluvio/bin" >> $GITHUB_PATH
- name: Install Local Fluvio cluster
timeout-minutes: 3
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/cd_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ jobs:

# Utilizes the env var set in the previous step
- name: Curl Install
run: curl -fsS https://hub.infinyon.cloud/install/install.sh | bash | tee /tmp/installer.version
run: curl -fsS https://hub.infinyon.cloud/install/install.sh?ctx=ci | bash | tee /tmp/installer.version

- name: Verify installer output
run: |
Expand Down Expand Up @@ -119,7 +119,7 @@ jobs:
- run: echo "VERSION=$EXPECTED_VERSION" | tee -a $GITHUB_ENV
- name: Install Fluvio
run: |
curl -fsS https://hub.infinyon.cloud/install/install.sh | bash
curl -fsS https://hub.infinyon.cloud/install/install.sh?ctx=ci | bash
echo "$HOME/.fluvio/bin" >> $GITHUB_PATH
- name: Start cluster
timeout-minutes: 10
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -948,7 +948,7 @@ jobs:
# from now, fluvio will be stable
- name: Install stable CLI and start Fluvio cluster
run: |
curl -fsS https://hub.infinyon.cloud/install/install.sh | bash
curl -fsS https://hub.infinyon.cloud/install/install.sh?ctx=ci | bash
echo "~/.fluvio/bin" >> $GITHUB_PATH
# Download artifacts from development build
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/connector-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
steps:
- name: Install Fluvio
run: |
curl -fsS https://hub.infinyon.cloud/install/install.sh | bash
curl -fsS https://hub.infinyon.cloud/install/install.sh?ctx=ci | bash
echo "$HOME/.fluvio/bin" >> $GITHUB_PATH
- name: Install Fluvio CDK
run: fluvio install cdk --develop
Expand Down Expand Up @@ -88,7 +88,7 @@ jobs:
steps:
- name: Install Fluvio
run: |
curl -fsS https://hub.infinyon.cloud/install/install.sh | bash
curl -fsS https://hub.infinyon.cloud/install/install.sh?ctx=ci | bash
echo "$HOME/.fluvio/bin" >> $GITHUB_PATH
- name: Install Fluvio CDK
run: fluvio install cdk --develop
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/hourly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ jobs:
./k8-util/cluster/reset-k3d.sh
- name: Install Fluvio CLI and start cluster
run: |
curl -fsS https://hub.infinyon.cloud/install/install.sh | VERSION=latest bash
curl -fsS https://hub.infinyon.cloud/install/install.sh?ctx=ci | VERSION=latest bash
echo "$HOME/.fluvio/bin" >> $GITHUB_PATH
- name: Start Fluvio Cluster
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/smartmodule-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
steps:
- name: Install Fluvio
run: |
curl -fsS https://hub.infinyon.cloud/install/install.sh | bash
curl -fsS https://hub.infinyon.cloud/install/install.sh?ctx=ci | bash
echo "$HOME/.fluvio/bin" >> $GITHUB_PATH
- name: Install Fluvio SMDK
run: fluvio install smdk
Expand Down
2 changes: 1 addition & 1 deletion actions/action-install-fluvio-cluster.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
set -eu -o pipefail
echo "Installing Fluvio Local Cluster"

curl -fsS https://hub.infinyon.cloud/install/install.sh | bash
curl -fsS https://hub.infinyon.cloud/install/install.sh?ctx=ci | bash
echo 'export PATH="$HOME/.fluvio/bin:$PATH"' >> $HOME/.bash_profile
. $HOME/.bash_profile

Expand Down
2 changes: 1 addition & 1 deletion dev-tools/smartmodule.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
RUN source "$HOME/.cargo/env"

# setup fluvio
RUN curl -fsS https://hub.infinyon.cloud/install/install.sh | bash
RUN curl -fsS https://hub.infinyon.cloud/install/install.sh?ctx=ci | bash

# add Fluvio smartmodule deps
# source cargo/env is a little bit of a workaround
Expand Down
2 changes: 1 addition & 1 deletion makefiles/release.mk
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ docker-push-manifest-dev: docker-create-manifest-dev docker-push-manifest

# Uses $(VERSION)
curl-install-fluvio:
curl -fsS https://hub.infinyon.cloud/install/install.sh | bash
curl -fsS https://hub.infinyon.cloud/install/install.sh?ctx=ci | bash

install-fluvio-stable: VERSION=stable
install-fluvio-stable: curl-install-fluvio
Expand Down
4 changes: 2 additions & 2 deletions tests/cli/test_helper/fluvio_dev.bash
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ function setup_fluvio_cluster() {

echo "# Installing cluster @ VERSION: $CLUSTER_VERSION" >&3
$FLUVIO_BIN version >&3
curl -fsS https://hub.infinyon.cloud/install/install.sh | VERSION=$CLUSTER_VERSION bash
curl -fsS https://hub.infinyon.cloud/install/install.sh?ctx=ci | VERSION=$CLUSTER_VERSION bash
echo "# Starting cluster @ VERSION: $CLUSTER_VERSION" >&3

if [ "$CLUSTER_VERSION" = "latest" ]; then
Expand All @@ -73,6 +73,6 @@ function setup_fluvio_cluster() {
function setup_fluvio_cli() {
CLI_VERSION=${1:-latest}
echo "Installing CLI @ VERSION: $CLI_VERSION" >&3
curl -fsS https://hub.infinyon.cloud/install/install.sh | VERSION=$CLI_VERSION bash
curl -fsS https://hub.infinyon.cloud/install/install.sh?ctx=ci | VERSION=$CLI_VERSION bash
$FLUVIO_BIN version >&3
}
2 changes: 1 addition & 1 deletion tests/fluvio-validate-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ readonly FLUVIO_COMMIT_CHECK=${2?Pass in expected commit in pos 2}
# This function should always run first
function validate_installer_output() {
# Validate the installer output returns the expected version
curl -fsS https://hub.infinyon.cloud/install/install.sh | bash | tee /tmp/installer.output
curl -fsS https://hub.infinyon.cloud/install/install.sh?ctx=ci | bash | tee /tmp/installer.output

INSTALLED_FLUVIO_VERSION=$(cat /tmp/installer.output | grep "Downloading Fluvio" | awk '{print $5}' | tr -d '[:space:]')
EXPECTED_FLUVIO_VERSION=$FLUVIO_VERSION_CHECK
Expand Down
2 changes: 1 addition & 1 deletion tests/upgrade-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ function validate_cluster_stable() {
echo "Install (current stable) CLI"
unset VERSION

curl -fsS https://hub.infinyon.cloud/install/install.sh | bash
curl -fsS https://hub.infinyon.cloud/install/install.sh?ctx=ci | bash

~/.fvm/bin/fvm install stable | tee /tmp/installer.output
STABLE_VERSION=$(cat /tmp/installer.output | grep "fluvio@" | awk '{print $4}' | cut -b 8-)
Expand Down

0 comments on commit 5d3e3d1

Please sign in to comment.