Fakultas Ilmu Komputer UI
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
MyUI-Dev
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
mihp26
MyUI-Dev
Commits
0152349c
Commit
0152349c
authored
7 years ago
by
moh. afifun naily
Browse files
Options
Downloads
Plain Diff
Merge branch 'develop' of
https://gitlab.cs.ui.ac.id/mihp26/MyUI-Dev
into develop
parents
84fb1288
10065e2c
No related branches found
No related tags found
2 merge requests
!185
Develop
,
!132
Task/ui info matkul
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+30
-8
30 additions, 8 deletions
.gitlab-ci.yml
with
30 additions
and
8 deletions
.gitlab-ci.yml
+
30
−
8
View file @
0152349c
image
:
hafiyyan94/androidsdk25gitlabci:newSet
#
image: hafiyyan94/androidsdk25gitlabci:newSet
before_script
:
-
chmod +x ./gradlew
# - chmod +x ./gradlew
-
'
which
ssh-agent
||
(
apt-get
update
-y
&&
apt-get
install
openssh-client
-y
)'
-
eval $(ssh-agent -s)
-
ssh-add <(echo "$DEPLOY_KEY")
-
mkdir -p ~/.ssh
-
'
[[
-f
/.dockerenv
]]
&&
echo
-e
"Host
*\n\tStrictHostKeyChecking
no\n\n"
>
~/.ssh/config'
-
ssh-keyscan -t rsa 152.118.29.42 >> ~/.ssh/known_hosts
stages
:
-
build
-
test
-
staging
# unitTests:
# stage: test
# script:
# - ./gradlew testDebugUnitTestCoverage
# artifacts:
# paths:
# - app/build/reports
unitTests
:
stage
:
test
deploy_backend_staging
:
stage
:
staging
type
:
deploy
script
:
-
./gradlew testDebugUnitTestCoverage
artifacts
:
paths
:
-
app/build/reports
-
cd backend-project
-
git init
-
git remote add staging ssh://myui@152.118.29.42/home/myui/repository/staging.git ||
true
-
git add .
-
git -c user.name='myui' -c user.email='myui@myui' commit -m 'deploy to staging' ||
true
-
git push staging master --force
-
ssh myui@152.118.29.42 -t "sudo -E service apache2 restart"
only
:
-
develop
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