diff --git a/.github/workflows/chartpress.yaml b/.github/workflows/chartpress.yaml index ef0c61d0..d9d172e5 100644 --- a/.github/workflows/chartpress.yaml +++ b/.github/workflows/chartpress.yaml @@ -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 ################ diff --git a/images/web/Dockerfile b/images/web/Dockerfile index 44b324a2..63bb984b 100644 --- a/images/web/Dockerfile +++ b/images/web/Dockerfile @@ -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 \