Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
sucs-site
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
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
Show more breadcrumbs
sucssite
sucs-site
Commits
37529fc8
Commit
37529fc8
authored
5 years ago
by
Imran Hussain
Browse files
Options
Downloads
Plain Diff
Merge branch 'beta' into 'sucs-site'
ability for site to auto deploy See merge request
!111
parents
bb7e6d0a
6cf55875
No related branches found
No related tags found
1 merge request
!111
ability for site to auto deploy
Pipeline
#583
passed
5 years ago
Stage: test
Stage: deploy
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+8
-4
8 additions, 4 deletions
.gitlab-ci.yml
htdocs/pull.php
+14
-0
14 additions, 0 deletions
htdocs/pull.php
with
22 additions
and
4 deletions
.gitlab-ci.yml
+
8
−
4
View file @
37529fc8
...
...
@@ -33,18 +33,22 @@ js-syntax-check:
-
npm install -g jshint
-
find htdocs/js/ -name *.js ! -name jquery* | xargs -n 1 jshint --verbose
fake-
deploy-beta
:
deploy-beta
:
stage
:
deploy
script
:
-
echo "Hello World!"
-
apt update
-
apt install -y curl
-
curl https://beta.sucs.org/pull.php
only
:
-
beta
environment
:
beta
fake-
deploy-live
:
deploy-live
:
stage
:
deploy
script
:
-
echo "Hello World!"
-
apt update
-
apt install -y curl
-
curl https://sucs.org/pull.php
only
:
-
sucs-site
environment
:
live
\ No newline at end of file
This diff is collapsed.
Click to expand it.
htdocs/pull.php
0 → 100644
+
14
−
0
View file @
37529fc8
<?php
exec
(
"cd ..; git reset --hard HEAD; git pull"
,
$retArr
,
$retVal
);
if
(
$retVal
==
0
)
{
print
(
ok
);
exit
(
0
)
}
print
(
"not ok
\n
"
);
var_dump
(
$retArr
);
var_dump
(
$retVal
);
?>
\ No newline at end of file
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