mirror of
https://github.com/wavetermdev/backup.git
synced 2026-08-05 13:57:07 -07:00
make aws profile an argument in the scripts
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Downloads the artifacts for the specified version from the staging bucket for local testing.
|
||||
# Usage: download-staged-artifact.sh <version>
|
||||
# Example: download-staged-artifact.sh 0.1.0
|
||||
# Retrieve version from the first argument
|
||||
# Usage: download-staged-artifact.sh <version> <aws-profile>
|
||||
# Example: download-staged-artifact.sh 0.1.0 storage
|
||||
|
||||
VERSION=$1
|
||||
if [ -z "$VERSION" ]; then
|
||||
echo "Usage: $0 <version>"
|
||||
AWS_PROFILE=$2
|
||||
if [ -z "$VERSION" || -z "$AWS_PROFILE" ]; then
|
||||
echo "Usage: $0 <version> <aws-profile>"
|
||||
exit
|
||||
fi
|
||||
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
# Takes a release from our staging bucket and publishes it to the public download bucket.
|
||||
# Usage: publish-from-staging.sh <version>
|
||||
# Example: publish-from-staging.sh 0.1.0
|
||||
# Usage: publish-from-staging.sh <version> <aws-profile>
|
||||
# Example: publish-from-staging.sh 0.1.0 storage
|
||||
|
||||
# Takes the version as an argument
|
||||
VERSION=$1
|
||||
if [ -z "$VERSION" ]; then
|
||||
echo "Usage: $0 <version>"
|
||||
AWS_PROFILE=$2
|
||||
if [ -z "$VERSION" || -z "$AWS_PROFILE" ]; then
|
||||
echo "Usage: $0 <version> <aws-profile>"
|
||||
exit
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user