Skip to content

Commit

Permalink
Pass RAILS_MASTER_KEY as argument and use in env var - web container
Browse files Browse the repository at this point in the history
  • Loading branch information
Rub21 committed Dec 27, 2024
1 parent 7c679f8 commit 96537bb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/chartpress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
run: |
pip install chartpress six ruamel.yaml
- name: Run Chartpress
run: chartpress --push
run: chartpress --push --build-args RAILS_MASTER_KEY=${{ secrets.RAILS_MASTER_KEY }}
env:
GITHUB_TOKEN: ${{ secrets.GHCR_GITHUB_TOKEN }}
################ Development secrets ################
Expand Down
4 changes: 3 additions & 1 deletion images/web/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@ FROM ruby:3.3.0
ENV DEBIAN_FRONTEND=noninteractive
ENV workdir=/var/www

# Production OSM setup
# Environment Variables
ENV RAILS_ENV=production
ARG RAILS_MASTER_KEY
ENV RAILS_MASTER_KEY=${RAILS_MASTER_KEY}

# Install the openstreetmap-website dependencies
RUN apt-get update \
Expand Down

0 comments on commit 96537bb

Please sign in to comment.