Skip to content

Commit

Permalink
correctly set env variables. #681
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Fenner committed Nov 22, 2020
1 parent 0ebbe8d commit f592a38
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
3 changes: 0 additions & 3 deletions .env.build
Original file line number Diff line number Diff line change
@@ -1,3 +0,0 @@
# these ENV variables are not used in production and can be shared publicly
SESSION_ENCRYPTED_COOKIE_SALT=0769107f0f07c8b0c2bbdc50dc1785
SECRET_KEY_BASE=5653e5687542b9ddb22a788b9d10bac6579a9c8933c2389b3e79a2b374adb0ab8751d026e9aafb5e55fb48bacbb8a42692a991be02046249388d558319236e1a
14 changes: 11 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@ jobs:
runs-on: ubuntu-latest
env:
MEMCACHE_SERVERS: "localhost:11211"
MYSQL_HOST: "localhost:3306"
MYSQL_HOST: "localhost"
ES_HOST: "localhost:9200"
ELASTIC_PASSWORD: "changeme"
SECRET_KEY_BASE: ${{ secrets.SECRET_KEY_BASE }}
SESSION_ENCRYPTED_COOKIE_SALT: ${{ secrets.SESSION_ENCRYPTED_COOKIE_SALT }}
services:
memcached:
image: memcached:1.4.31
Expand All @@ -35,17 +37,23 @@ jobs:
http.cors.allow-origin: "*"
ports:
- 9200:9200
- 9300:9300
steps:
- uses: actions/checkout@v2
- name: Set up Ruby 2.6
uses: actions/setup-ruby@v1
with:
ruby-version: '2.6.x'
ruby-version: '2.6.x'
- uses: actions/cache@v2
with:
path: vendor/bundle
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gems-
- name: Install
run: |
cp .env.build .env
gem install bundler
bundle config path vendor/bundle
bundle install --jobs 4 --retry 3
bundle exec rails db:setup RAILS_ENV=test
- name: Lint and Test
Expand Down

0 comments on commit f592a38

Please sign in to comment.