5 Commits

Author SHA1 Message Date
fd2ebc4ad3 Merge pull request 'Cache dependencies on CI' (#6) from chore/cache_bundle_on_ci into master
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
Reviewed-on: #6
2020-11-26 15:44:19 +00:00
c86480e72b Cache dependencies on CI
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
https://florian-latifi.at/2018/02/21/using-drone-to-build-and-deploy-a-jekyll-site/
https://git.florian-latifi.at/flortsch/jekyll-blog/src/branch/master/.drone.yml
2020-11-21 23:17:12 +01:00
5933c387b6 Set correct email address for devise
All checks were successful
continuous-integration/drone/push Build is passing
2020-11-21 17:17:33 +01:00
e855e3cf61 Merge pull request 'Gracefully fail config build when master secret not available' (#5) from bugfix/config_without_master_key into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #5
2020-11-21 15:28:55 +00:00
91c3f8da2d Gracefully fail config build when master secret not available
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
When the credentials are not accessible, e.g. on CI, parsing the
database config fails otherwise.
2020-11-21 16:22:11 +01:00
4 changed files with 30 additions and 7 deletions

View File

@@ -3,12 +3,35 @@ type: docker
name: CI build
steps:
- name: restore-cache
image: drillster/drone-volume-cache
volumes:
- name: cache
path: /cache
settings:
restore: true
mount:
- vendor
- name: rspec
image: guildeducation/rails:2.7.1-12.19.0
commands:
- bundle install --jobs=3 --retry=3
- bundle install --jobs=3 --retry=3 --deployment
- yarn install
- bundle exec rspec
when:
branch:
- master
- name: rebuild-cache
image: drillster/drone-volume-cache
volumes:
- name: cache
path: /cache
settings:
rebuild: true
mount:
- vendor
volumes:
- name: cache
host:
path: /var/lib/drone/tmp

View File

@@ -25,6 +25,6 @@ production:
adapter: postgresql
database: akkounts
port: 5432
host: <%= Rails.application.credentials.postgres[:host] %>
username: <%= Rails.application.credentials.postgres[:username] %>
password: <%= Rails.application.credentials.postgres[:password] %>
host: <%= Rails.application.credentials.postgres[:host] rescue nil %>
username: <%= Rails.application.credentials.postgres[:username] rescue nil %>
password: <%= Rails.application.credentials.postgres[:password] rescue nil %>

View File

@@ -49,7 +49,7 @@ Devise.setup do |config|
# Configure the e-mail address which will be shown in Devise::Mailer,
# note that it will be overwritten if you use your own mailer class
# with default "from" parameter.
config.mailer_sender = 'please-change-me-at-config-initializers-devise@example.com'
config.mailer_sender = 'accounts@kosmos.org'
# Configure the class responsible to send e-mails.
# config.mailer = 'Devise::Mailer'

View File

@@ -50,7 +50,7 @@ production:
port: 636
attribute: cn
base: ou=kosmos.org,cn=users,dc=kosmos,dc=org
admin_user: <%= Rails.application.credentials.ldap[:username] %>
admin_password: <%= Rails.application.credentials.ldap[:password] %>
admin_user: <%= Rails.application.credentials.ldap[:username] rescue nil %>
admin_password: <%= Rails.application.credentials.ldap[:password] rescue nil %>
ssl: simple_tls
# <<: *AUTHORIZATIONS