some different examples of functions
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
656eff4c9b
commit
033b94a8b4
18
abra.sh
18
abra.sh
|
@ -2,7 +2,23 @@
|
||||||
|
|
||||||
export ENTRYPOINT_CONF_VERSION=v5
|
export ENTRYPOINT_CONF_VERSION=v5
|
||||||
|
|
||||||
setup_secrets() {
|
migrate() {
|
||||||
|
export OTP_SECRET=$(cat /run/secrets/otp_secret)
|
||||||
|
export SECRET_KEY_BASE=$(cat /run/secrets/secret_key_base)
|
||||||
|
export DB_PASS=$(cat /run/secrets/db_password)
|
||||||
|
|
||||||
|
bundle exec rake db:setup
|
||||||
|
}
|
||||||
|
|
||||||
|
admin() {
|
||||||
|
export OTP_SECRET=$(cat /run/secrets/otp_secret)
|
||||||
|
export SECRET_KEY_BASE=$(cat /run/secrets/secret_key_base)
|
||||||
|
export DB_PASS=$(cat /run/secrets/db_password)
|
||||||
|
|
||||||
|
tootctl accounts create "$1" --email "$2" --confirmed --role admin
|
||||||
|
}
|
||||||
|
|
||||||
|
secrets() {
|
||||||
docker context use default > /dev/null 2>&1
|
docker context use default > /dev/null 2>&1
|
||||||
|
|
||||||
echo "Generating secrets for new Hometown deployment..."
|
echo "Generating secrets for new Hometown deployment..."
|
||||||
|
|
Loading…
Reference in New Issue