Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
latoilescoute-dev
scoodle
Commits
5a171277
Unverified
Commit
5a171277
authored
Mar 28, 2018
by
Thomas Citharel
Browse files
add beta stage
Signed-off-by:
Thomas Citharel
<
tcit@tcit.fr
>
parent
6ed3a0c3
Changes
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
5a171277
...
...
@@ -2,6 +2,7 @@ image: framasoft/framadate-ci
stages
:
-
test
-
deploy
-
beta
-
funky
# Run php-cs-fixer and phpunit on all branches
...
...
@@ -37,6 +38,26 @@ pages:
only
:
-
master
# Deploy on develop
funky
:
stage
:
beta
script
:
-
git checkout develop
-
composer install -o --no-interaction --no-progress --prefer-dist --no-dev
-
composer dump-autoload --optimize --no-dev --classmap-authoritative
-
mkdir tpl_c
-
mkdir .public
-
cp -r * .public
-
mv .public public
-
mkdir "${HOME}/.ssh"
-
chmod 700 "${HOME}/.ssh"
-
if [ ! -z ${DEPLOYEMENT_KNOWN_HOSTS+x} ]; then echo -e "${DEPLOYEMENT_KNOWN_HOSTS}" > ${HOME}/.ssh/known_hosts; fi
-
eval `ssh-agent -s`
-
if [ ! -z ${BETA_KEY+x} ]; then ssh-add <(echo "${BETA_KEY}" | base64 --decode -i); fi
-
if [ ! -z ${BETA_KEY+x} ]; then rsync -a --delete --exclude admin/.stdout.log --exclude admin/.htpasswd --exclude app/inc/config.php --exclude stats/ --exclude error/ public/ ${BETA_USER}@${DEPLOYEMENT_HOST}:../../web/; fi
only
:
-
develop
# Deploy on funky
funky
:
stage
:
funky
...
...
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