[discourse-web] Revert "Revert hardcoding a specific tag as we then cannot cherry-pick random fixes from the tests-p



commit 1b0f294de4a16d646b205371c2d85046bdcad44f
Author: Andrea Veri <averi redhat com>
Date:   Tue Dec 10 12:45:55 2019 +0100

    Revert "Revert hardcoding a specific tag as we then cannot cherry-pick random fixes from the tests-passed 
branch"
    
    This reverts commit 233831965c26552b6e02231bb39f7bfc264f08f8.

 Dockerfile | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/Dockerfile b/Dockerfile
index 862e156..401a124 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -31,10 +31,12 @@ RUN apt update && \
 ### Set up Discourse ##################################
 #   - So we can overrride it with --build_arg
 ARG DISCOURSE_VERS='tests-passed'
-ENV DISCOURSE_RELEASE=$DISCOURSE_VERS RAILS_ENV=production RAILS_ROOT=/discourse HOME=/discourse
+ARG DISCOURSE_TAGS='v2.4.0.beta8'
+ENV DISCOURSE_RELEASE=$DISCOURSE_VERS DISCOURSE_TAG=$DISCOURSE_TAGS RAILS_ENV=production 
RAILS_ROOT=/discourse HOME=/discourse
 
 RUN mkdir -p discourse && \
-    git clone --depth=1 --single-branch --branch "$DISCOURSE_RELEASE"  
https://github.com/discourse/discourse.git /discourse
+    git clone --depth=1 --single-branch --branch "$DISCOURSE_RELEASE"  
https://github.com/discourse/discourse.git /discourse && \
+    cd /discourse && git fetch --tags && git checkout tags/$DISCOURSE_TAG
 
 WORKDIR $HOME
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]