some different examples of functions
continuous-integration/drone/push Build is failing Details

This commit is contained in:
decentral1se 2022-03-13 16:49:00 +01:00
parent 656eff4c9b
commit 033b94a8b4
Signed by: decentral1se
GPG Key ID: 03789458B3D0C410
1 changed files with 17 additions and 1 deletions

18
abra.sh
View File

@ -2,7 +2,23 @@
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
echo "Generating secrets for new Hometown deployment..."