Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
discourse
Manage
Activity
Members
Labels
Plan
Issues
9
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
libre.sh
docker
discourse
Commits
8d08282c
Commit
8d08282c
authored
2 years ago
by
Timothee Gosselin
Browse files
Options
Downloads
Patches
Plain Diff
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
Stage: test
in 12 minutes and 6 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+1
-0
1 addition, 0 deletions
.gitlab-ci.yml
Dockerfile
+4
-0
4 additions, 0 deletions
Dockerfile
with
5 additions
and
0 deletions
.gitlab-ci.yml
+
1
−
0
View file @
8d08282c
...
...
@@ -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
:
...
...
This diff is collapsed.
Click to expand it.
Dockerfile
+
4
−
0
View file @
8d08282c
...
...
@@ -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"]
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment