You've already forked gitlab-actions
mirror of
https://github.com/hegerdes/gitlab-actions.git
synced 2025-10-06 05:36:52 +02:00
fix: aws install on alpine
Signed-off-by: Henrik Gerdes <hegerdes@outlook.de>
This commit is contained in:
@@ -19,7 +19,7 @@
|
||||
- |
|
||||
# Installing core tools
|
||||
if command -v apk > /dev/null; then
|
||||
apk add curl jq unzip tar gzip > /dev/null
|
||||
apk add --no-cache curl jq unzip tar gzip > /dev/null
|
||||
else
|
||||
echo "The apk package manager does not exist. Skipping core tool install."
|
||||
fi
|
||||
@@ -296,9 +296,13 @@
|
||||
# Check if aws cli is installed
|
||||
if ! command -v aws > /dev/null; then
|
||||
echo "Installing aws-cli"
|
||||
curl -sL "https://awscli.amazonaws.com/awscli-exe-linux-$(uname -m).zip" -o "/tmp/awscliv2.zip"
|
||||
unzip /tmp/awscliv2.zip -d /tmp > /dev/null
|
||||
/tmp/aws/install > /dev/null
|
||||
if command -v apk > /dev/null; then
|
||||
apk add --no-cache aws-cli > /dev/null
|
||||
else
|
||||
curl -sL "https://awscli.amazonaws.com/awscli-exe-linux-$(uname -m).zip" -o "/tmp/awscliv2.zip"
|
||||
unzip /tmp/awscliv2.zip -d /tmp > /dev/null
|
||||
/tmp/aws/install > /dev/null
|
||||
fi
|
||||
fi
|
||||
aws --version
|
||||
ssh-setup:
|
||||
|
Reference in New Issue
Block a user