Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
framadate
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor 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
Show more breadcrumbs
Nounous
framadate
Commits
9897a024
Commit
9897a024
authored
7 years ago
by
JosephK
Browse files
Options
Downloads
Patches
Plain Diff
Déploiement en CI sur funky.framasoft.org
parent
9229b5cb
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+46
-0
46 additions, 0 deletions
.gitlab-ci.yml
with
46 additions
and
0 deletions
.gitlab-ci.yml
0 → 100644
+
46
−
0
View file @
9897a024
image
:
php
stages
:
-
deploy
-
funky
pages
:
stage
:
deploy
before_script
:
-
apt-get update -yqq
-
apt-get install zip unzip git -yqq
-
curl --silent --show-error https://getcomposer.org/installer | php
script
:
-
latesttag=$(git describe --tags)
-
git checkout ${latesttag}
-
php composer.phar install
-
mkdir tpl_c
-
zip -r latest.zip .
-
mkdir .public
-
cp latest.zip .public
-
mv .public public
artifacts
:
paths
:
-
public
only
:
-
master
funky
:
stage
:
funky
before_script
:
-
apt-get update -y -qq
-
DEBIAN_FRONTEND=noninteractive apt-get install -y -qq zip unzip git
-
curl --silent --show-error https://getcomposer.org/installer | php
script
:
-
git checkout funky
-
php composer.phar install
-
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 ${DEPLOYEMENT_KEY+x} ]; then ssh-add <(echo "${DEPLOYEMENT_KEY}" | base64 --decode -i); fi
-
if [ ! -z ${DEPLOYEMENT_KEY+x} ]; then rsync -a --delete --exclude admin/.stdout.log --exclude admin/.htpasswd --exclude app/inc/config.php --exclude stats/ --exclude errors/ public/ ${DEPLOYEMENT_USER}@${DEPLOYEMENT_HOST}:../../web/; fi
only
:
-
funky
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