Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
subugoe
ahiqar
ahiqar-tido
Commits
45b83194
Commit
45b83194
authored
Oct 14, 2020
by
Mathias Goebel
🎠
Browse files
feature: set entrypoint based on branch
parent
d864922e
Changes
2
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
45b83194
...
...
@@ -10,6 +10,7 @@ build:
# when we want to include the frontend-templating, we have to use recursive
GIT_SUBMODULE_STRATEGY
:
normal
script
:
-
./set-entrypoint.sh
-
cp --force index.html Qviewer/src/index.template.html
-
cp --force ahikar.css Qviewer/src/statics/
-
cd Qviewer
...
...
set-entrypoint.sh
0 → 100644
View file @
45b83194
#!/bin/bash
# this script sets the entrypoint for the Qviewer that depends on the
# branch it is build from.
echo
CI_COMMIT_REF_NAME
=
${
CI_COMMIT_REF_NAME
}
case
${
CI_COMMIT_REF_NAME
}
in
"main"
)
sed
-i
"s ahikar-test
\.
sub ahikar.sub g"
index.html
echo
"set entrypoint for production"
;;
"develop"
)
sed
-i
"s ahikar-test
\.
sub ahikar.sub g"
index.html
echo
"set entrypoint for develop aka staging"
;;
*
)
echo
"set entrypoint for testing"
;;
esac
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment