simplify-secret #27

Merged
bucky merged 7 commits from simplify-secret into master 2023-10-17 21:43:20 -07:00
Showing only changes of commit 1fae85ff9d - Show all commits
Vendored
+5 -3
View File
@@ -7,9 +7,11 @@ pipeline {
stages { stages {
stage('Init') { stage('Init') {
steps { steps {
sh 'rbenv local 3.2.2' sh ''' #!/usr/local/bin/bash
sh 'echo "ENV[\\\"APP_SESSION_SECRET\\\"] ||= $(ruby secret.rb)" > .env.rb' rbenv local 3.2.2
sh 'echo "ENV[\\\"DB_NAME\\\"] ||= \\\"${DB_NAME}\\\"" >> .env.rb' echo 'ENV["APP_SESSION_SECRET"] ||= $(ruby -rsecurerandom -e "puts SecureRandom.base64(64).inspect()")' > .env.rb
echo 'ENV["DB_NAME"] ||= "${DB_NAME}"' >> .env.rb
'''
} }
} }
stage('Build dependencies') { stage('Build dependencies') {