-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from actions/master
Getting the last changes
- Loading branch information
Showing
56 changed files
with
341 additions
and
103 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#!/bin/bash | ||
################################################################################ | ||
## File: aliyun-cli.sh | ||
## Desc: Installs Alibaba Cloud CLI | ||
################################################################################ | ||
|
||
# Source the helpers for use with the script | ||
source $HELPER_SCRIPTS/document.sh | ||
source $HELPER_SCRIPTS/apt.sh | ||
|
||
# Install Alibaba Cloud CLI | ||
URL=$(curl -s https://api.github.com/repos/aliyun/aliyun-cli/releases/latest | jq -r '.assets[].browser_download_url | select(contains("aliyun-cli-linux"))') | ||
wget -P /tmp $URL | ||
tar xzvf /tmp/aliyun-cli-linux-*-amd64.tgz | ||
mv aliyun /usr/local/bin | ||
|
||
# Run tests to determine that the software installed as expected | ||
echo "Testing to make sure that script performed as expected, and basic scenarios work" | ||
if ! command -v aliyun ; then | ||
echo "aliyun was not installed" | ||
exit 1 | ||
fi | ||
|
||
# Document what was added to the image | ||
aliyun_version="$(aliyun --version | grep "Alibaba Cloud Command Line Interface Version" | cut -d " " -f 7)" | ||
echo "Lastly, documenting what we added to the metadata file" | ||
DocumentInstalledItem "Alibaba Cloud CLI ($aliyun_version)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/bin/bash | ||
################################################################################ | ||
## File: aws-sam-cli.sh | ||
## Desc: Installs AWS SAM CLI | ||
## Must be run as non-root user after homebrew and clang | ||
################################################################################ | ||
|
||
# Source the helpers for use with the script | ||
source $HELPER_SCRIPTS/document.sh | ||
|
||
# Install aws sam cli | ||
brew tap aws/tap | ||
brew install aws-sam-cli | ||
|
||
# Run tests to determine that the software installed as expected | ||
echo "Testing to make sure that script performed as expected, and basic scenarios work" | ||
if ! sam --version; then | ||
echo "AWS SAM CLI was not installed" | ||
exit 1 | ||
fi | ||
|
||
# Document what was added to the image | ||
echo "Lastly, documenting what we added to the metadata file" | ||
DocumentInstalledItem "AWS $(sam --version)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.