make aws profile an argument in the scripts

This commit is contained in:
Evan Simkowitz 2024-08-16 11:53:43 -07:00
parent a97b8cca58
commit 36193111e2
No known key found for this signature in database
2 changed files with 10 additions and 10 deletions

View File

@ -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

View File

@ -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