Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pin v0.38 install script to compatible package versions #2076

Merged
merged 1 commit into from
May 19, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 10 additions & 11 deletions scripts/install/install-linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,11 @@ set -euo pipefail
# PORTER_MIRROR: Base URL where Porter assets, such as binaries and atom feeds, are downloaded. This lets you
# setup an internal mirror.
# PORTER_PERMALINK: The version of Porter to install, such as vX.Y.Z, latest or canary.
# PKG_PERMALINK: The version of mixins and plugins to install, such as latest or canary.
# PKG_PERMALINK: DEPRECATED. Plugin and mixin versions are pinned to versions compatible with the v0.38 stable release

export PORTER_HOME=${PORTER_HOME:-~/.porter}
export PORTER_MIRROR=${PORTER_MIRROR:-https://cdn.porter.sh}
PORTER_PERMALINK=${PORTER_PERMALINK:-latest}
PKG_PERMALINK=${PKG_PERMALINK:-latest}

echo "Installing porter@$PORTER_PERMALINK to $PORTER_HOME from $PORTER_MIRROR"

Expand All @@ -22,16 +21,16 @@ chmod +x $PORTER_HOME/porter
cp $PORTER_HOME/porter $PORTER_HOME/runtimes/porter-runtime
echo Installed `$PORTER_HOME/porter version`

$PORTER_HOME/porter mixin install exec --version $PKG_PERMALINK
$PORTER_HOME/porter mixin install kubernetes --version $PKG_PERMALINK
$PORTER_HOME/porter mixin install helm --version $PKG_PERMALINK
$PORTER_HOME/porter mixin install arm --version $PKG_PERMALINK
$PORTER_HOME/porter mixin install terraform --version $PKG_PERMALINK
$PORTER_HOME/porter mixin install az --version $PKG_PERMALINK
$PORTER_HOME/porter mixin install aws --version $PKG_PERMALINK
$PORTER_HOME/porter mixin install gcloud --version $PKG_PERMALINK
$PORTER_HOME/porter mixin install exec --version $PORTER_PERMALINK
$PORTER_HOME/porter mixin install kubernetes --version v0.28.5
$PORTER_HOME/porter mixin install helm --version v0.13.4
$PORTER_HOME/porter mixin install arm --version v0.8.2
$PORTER_HOME/porter mixin install terraform --version v0.9.1
$PORTER_HOME/porter mixin install az --version v0.7.2
$PORTER_HOME/porter mixin install aws --version v0.4.1
$PORTER_HOME/porter mixin install gcloud --version v0.4.2

$PORTER_HOME/porter plugin install azure --version $PKG_PERMALINK
$PORTER_HOME/porter plugin install azure --version v0.11.2

echo "Installation complete."
echo "Add porter to your path by adding the following line to your ~/.profile and open a new terminal:"
Expand Down
20 changes: 10 additions & 10 deletions scripts/install/install-mac.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,16 @@ chmod +x $PORTER_HOME/porter
chmod +x $PORTER_HOME/runtimes/porter-runtime
echo Installed `$PORTER_HOME/porter version`

$PORTER_HOME/porter mixin install exec --version $PKG_PERMALINK
$PORTER_HOME/porter mixin install kubernetes --version $PKG_PERMALINK
$PORTER_HOME/porter mixin install helm --version $PKG_PERMALINK
$PORTER_HOME/porter mixin install arm --version $PKG_PERMALINK
$PORTER_HOME/porter mixin install terraform --version $PKG_PERMALINK
$PORTER_HOME/porter mixin install az --version $PKG_PERMALINK
$PORTER_HOME/porter mixin install aws --version $PKG_PERMALINK
$PORTER_HOME/porter mixin install gcloud --version $PKG_PERMALINK

$PORTER_HOME/porter plugin install azure --version $PKG_PERMALINK
$PORTER_HOME/porter mixin install exec --version $PORTER_PERMALINK
$PORTER_HOME/porter mixin install kubernetes --version v0.28.5
$PORTER_HOME/porter mixin install helm --version v0.13.4
$PORTER_HOME/porter mixin install arm --version v0.8.2
$PORTER_HOME/porter mixin install terraform --version v0.9.1
$PORTER_HOME/porter mixin install az --version v0.7.2
$PORTER_HOME/porter mixin install aws --version v0.4.1
$PORTER_HOME/porter mixin install gcloud --version v0.4.2

$PORTER_HOME/porter plugin install azure --version v0.11.2

echo "Installation complete."
echo "Add porter to your path by adding the following line to your ~/.bash_profile or ~/.zprofile and open a new terminal:"
Expand Down
20 changes: 10 additions & 10 deletions scripts/install/install-windows.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ param(
# The version of Porter to install, such as vX.Y.Z, latest or canary.
$PORTER_PERMALINK='latest',
[String]
# The version of mixins and plugins to install, such as latest or canary.
# DEPRECATED. Plugin and mixin versions are pinned to versions compatible with the v0.38 stable release
$PKG_PERMALINK='latest',
[String]
# Location where Porter is installed (defaults to ~/.porter).
Expand All @@ -23,16 +23,16 @@ mkdir -f $PORTER_HOME/runtimes
(new-object System.Net.WebClient).DownloadFile("$PORTER_MIRROR/$PORTER_PERMALINK/porter-linux-amd64", "$PORTER_HOME\runtimes\porter-runtime")
echo "Installed $(& $PORTER_HOME\porter.exe version)"

& $PORTER_HOME/porter mixin install exec --version $PKG_PERMALINK
& $PORTER_HOME/porter mixin install kubernetes --version $PKG_PERMALINK
& $PORTER_HOME/porter mixin install helm --version $PKG_PERMALINK
& $PORTER_HOME/porter mixin install arm --version $PKG_PERMALINK
& $PORTER_HOME/porter mixin install terraform --version $PKG_PERMALINK
& $PORTER_HOME/porter mixin install az --version $PKG_PERMALINK
& $PORTER_HOME/porter mixin install aws --version $PKG_PERMALINK
& $PORTER_HOME/porter mixin install gcloud --version $PKG_PERMALINK
& $PORTER_HOME/porter mixin install exec --version $PORTER_PERMALINK
& $PORTER_HOME/porter mixin install kubernetes --version v0.28.5
& $PORTER_HOME/porter mixin install helm --version v0.13.4
& $PORTER_HOME/porter mixin install arm --version v0.8.2
& $PORTER_HOME/porter mixin install terraform --version v0.9.1
& $PORTER_HOME/porter mixin install az --version v0.7.2
& $PORTER_HOME/porter mixin install aws --version v0.4.1
& $PORTER_HOME/porter mixin install gcloud --version v0.4.2

& $PORTER_HOME/porter plugin install azure --version $PKG_PERMALINK
& $PORTER_HOME/porter plugin install azure --version v0.11.2

echo "Installation complete."
echo "Add porter to your path by adding the following line to your Microsoft.PowerShell_profile.ps1 and open a new terminal:"
Expand Down