From 16d4816bd362a59ca2f65ae413992b16dac42fa8 Mon Sep 17 00:00:00 2001 From: Ilia Medvedev Date: Wed, 28 Feb 2024 10:08:55 +0200 Subject: [PATCH 1/7] update pipeline --- codefresh.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/codefresh.yml b/codefresh.yml index 8e04ef6..f2c703d 100644 --- a/codefresh.yml +++ b/codefresh.yml @@ -27,8 +27,11 @@ steps: - TF_ACC="test" - CGO_ENABLED=0 commands: - - go install github.com/warrensbox/terraform-switcher@0.13.1308 - - terraform-switcher --latest-stable ${TF_VERSION} + - wget -O /tmp/tfswitch-install.sh https://raw.githubusercontent.com/warrensbox/terraform-switcher/release/install.sh + - chmod +x /tmp/tfswitch-install.sh + - /tmp/tfswitch-install.sh + - tfswitch --latest-stable ${TF_VERSION} + - sleep $((RANDOM % 45)) - go test -v ./... retry: maxAttempts: 3 @@ -38,8 +41,7 @@ steps: # The following will resolve to their latest patch version environment: - TF_VERSION=1.3.0 - - TF_VERSION=1.4.0 - - TF_VERSION=1.5.0 + - TF_VERSION=1.7.0 prepare_env_vars: title: "Preparing environment variables..." From ee1a51406e66e8fa287583ee6c0f9e164e6cf797 Mon Sep 17 00:00:00 2001 From: Ilia Medvedev Date: Wed, 28 Feb 2024 10:13:45 +0200 Subject: [PATCH 2/7] update pipeline --- codefresh.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codefresh.yml b/codefresh.yml index f2c703d..e9e66ba 100644 --- a/codefresh.yml +++ b/codefresh.yml @@ -30,7 +30,7 @@ steps: - wget -O /tmp/tfswitch-install.sh https://raw.githubusercontent.com/warrensbox/terraform-switcher/release/install.sh - chmod +x /tmp/tfswitch-install.sh - /tmp/tfswitch-install.sh - - tfswitch --latest-stable ${TF_VERSION} + - /usr/local/bin/tfswitch --latest-stable ${TF_VERSION} - sleep $((RANDOM % 45)) - go test -v ./... retry: From 964e22f7ad88d683c4b8604919b3f0f3106f7b9f Mon Sep 17 00:00:00 2001 From: Ilia Medvedev Date: Wed, 28 Feb 2024 10:18:44 +0200 Subject: [PATCH 3/7] update pipeline --- codefresh.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/codefresh.yml b/codefresh.yml index e9e66ba..dc079aa 100644 --- a/codefresh.yml +++ b/codefresh.yml @@ -30,6 +30,7 @@ steps: - wget -O /tmp/tfswitch-install.sh https://raw.githubusercontent.com/warrensbox/terraform-switcher/release/install.sh - chmod +x /tmp/tfswitch-install.sh - /tmp/tfswitch-install.sh + - ls -ltra /usr/local/bin - /usr/local/bin/tfswitch --latest-stable ${TF_VERSION} - sleep $((RANDOM % 45)) - go test -v ./... From 55751505e531ad6a6f1adcd2981ff6b141fbd27c Mon Sep 17 00:00:00 2001 From: Ilia Medvedev Date: Wed, 28 Feb 2024 10:37:30 +0200 Subject: [PATCH 4/7] update pipeline --- codefresh.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/codefresh.yml b/codefresh.yml index dc079aa..41e5eee 100644 --- a/codefresh.yml +++ b/codefresh.yml @@ -27,11 +27,11 @@ steps: - TF_ACC="test" - CGO_ENABLED=0 commands: - - wget -O /tmp/tfswitch-install.sh https://raw.githubusercontent.com/warrensbox/terraform-switcher/release/install.sh + - wget -O /tmp/tfswitch-install.sh https://raw.githubusercontent.com/warrensbox/terraform-switcher/release/install.sh && chmod +x /tmp/tfswitch-install.sh && /tmp/tfswitch-install.sh - chmod +x /tmp/tfswitch-install.sh - /tmp/tfswitch-install.sh - ls -ltra /usr/local/bin - - /usr/local/bin/tfswitch --latest-stable ${TF_VERSION} + - tfswitch --latest-stable ${TF_VERSION} - sleep $((RANDOM % 45)) - go test -v ./... retry: From defa2bdb6592e92b52813513aa9b565c33cead41 Mon Sep 17 00:00:00 2001 From: Ilia Medvedev Date: Wed, 28 Feb 2024 11:03:22 +0200 Subject: [PATCH 5/7] update pipeline --- codefresh.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/codefresh.yml b/codefresh.yml index 41e5eee..d756c6e 100644 --- a/codefresh.yml +++ b/codefresh.yml @@ -27,11 +27,8 @@ steps: - TF_ACC="test" - CGO_ENABLED=0 commands: - - wget -O /tmp/tfswitch-install.sh https://raw.githubusercontent.com/warrensbox/terraform-switcher/release/install.sh && chmod +x /tmp/tfswitch-install.sh && /tmp/tfswitch-install.sh - - chmod +x /tmp/tfswitch-install.sh - - /tmp/tfswitch-install.sh - - ls -ltra /usr/local/bin - - tfswitch --latest-stable ${TF_VERSION} + - wget -O /tmp/tfswitch-install.sh https://raw.githubusercontent.com/warrensbox/terraform-switcher/release/install.sh && chmod +x /tmp/tfswitch-install.sh && /tmp/tfswitch-install.sh -b /tmp + - /tmp/tfswitch --latest-stable ${TF_VERSION} - sleep $((RANDOM % 45)) - go test -v ./... retry: From dfece964670a80b7ec350e9cf2e15191ebfddb25 Mon Sep 17 00:00:00 2001 From: Ilia Medvedev Date: Wed, 28 Feb 2024 11:13:19 +0200 Subject: [PATCH 6/7] update pipeline --- codefresh.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/codefresh.yml b/codefresh.yml index d756c6e..7be29d4 100644 --- a/codefresh.yml +++ b/codefresh.yml @@ -27,8 +27,7 @@ steps: - TF_ACC="test" - CGO_ENABLED=0 commands: - - wget -O /tmp/tfswitch-install.sh https://raw.githubusercontent.com/warrensbox/terraform-switcher/release/install.sh && chmod +x /tmp/tfswitch-install.sh && /tmp/tfswitch-install.sh -b /tmp - - /tmp/tfswitch --latest-stable ${TF_VERSION} + - wget -O /tmp/tfswitch-install.sh https://raw.githubusercontent.com/warrensbox/terraform-switcher/release/install.sh && chmod +x /tmp/tfswitch-install.sh && /tmp/tfswitch-install.sh -b /tmp && /tmp/tfswitch --latest-stable ${TF_VERSION} - sleep $((RANDOM % 45)) - go test -v ./... retry: From c7b687463443fd7742e49a4d35e7da7979460852 Mon Sep 17 00:00:00 2001 From: Ilia Medvedev Date: Wed, 28 Feb 2024 11:58:14 +0200 Subject: [PATCH 7/7] update pipeline --- codefresh.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/codefresh.yml b/codefresh.yml index 7be29d4..48af15a 100644 --- a/codefresh.yml +++ b/codefresh.yml @@ -27,7 +27,8 @@ steps: - TF_ACC="test" - CGO_ENABLED=0 commands: - - wget -O /tmp/tfswitch-install.sh https://raw.githubusercontent.com/warrensbox/terraform-switcher/release/install.sh && chmod +x /tmp/tfswitch-install.sh && /tmp/tfswitch-install.sh -b /tmp && /tmp/tfswitch --latest-stable ${TF_VERSION} + - go install github.com/warrensbox/terraform-switcher@0.13.1308 + - terraform-switcher --latest-stable ${TF_VERSION} - sleep $((RANDOM % 45)) - go test -v ./... retry: