Skip to content
Snippets Groups Projects
Commit 8d08282c authored by Timothee Gosselin's avatar Timothee Gosselin
Browse files

fix: date in CI & build ember assets

parent 496e37c3
No related branches found
No related tags found
No related merge requests found
Pipeline #1212 passed with stage
in 12 minutes and 6 seconds
......@@ -5,6 +5,7 @@ variables:
.compute_version: &compute_version
- if [ "$CHANNEL" == "stable" ]; then export FILTER="grep -v beta"; else export FILTER="grep beta"; fi
- export DISCOURSE_VERSION=`wget -qO- https://api.github.com/repos/discourse/discourse/tags | grep name | cut -d'"' -f4 | $FILTER | head -n1`
- export DATE=`date "+%Y-%m-%dT%H-%M-%SZ"`
.test:
image:
......
......@@ -6,6 +6,7 @@ FROM $from:$tag
ENV RAILS_ENV=production \
DISCOURSE_SERVE_STATIC_ASSETS=true \
EMBER_CLI_COMPILE_DONE=1 \
EMBER_CLI_PROD_ASSETS=1 \
RUBY_GLOBAL_METHOD_CACHE_SIZE=131072 \
RUBY_GC_HEAP_GROWTH_MAX_SLOTS=40000 \
......@@ -40,4 +41,7 @@ RUN cd /var/www/discourse/plugins \
git clone $plugin; \
done
RUN cd app/assets/javascripts/discourse && \
/var/www/discourse/app/assets/javascripts/node_modules/.bin/ember build -prod
CMD ["bundle", "exec", "rails", "server", "-b", "0.0.0.0"]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment