Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
crond-66serv
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
Package Registry
Model registry
Operate
Environments
Terraform modules
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
pkg
observice
crond-66serv
Commits
612a513b
Commit
612a513b
authored
5 years ago
by
Eric Vidal
Browse files
Options
Downloads
Patches
Plain Diff
update deploy.sh script
parent
0513c86b
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.deploy.sh
+8
-6
8 additions, 6 deletions
.deploy.sh
with
8 additions
and
6 deletions
.deploy.sh
+
8
−
6
View file @
612a513b
...
@@ -87,13 +87,15 @@ mkdir -p version/${pkgver}-${pkgrel} || die "Unable to make directory version/${
...
@@ -87,13 +87,15 @@ mkdir -p version/${pkgver}-${pkgrel} || die "Unable to make directory version/${
out_trace
"Copy file from trunk to version/
${
pkgver
}
-
${
pkgrel
}
"
out_trace
"Copy file from trunk to version/
${
pkgver
}
-
${
pkgrel
}
"
cp
trunk/
*
version/
${
pkgver
}
-
${
pkgrel
}
||
die
"Unable to copy trunk/* to version/
${
pkgver
}
-
${
pkgrel
}
"
cp
trunk/
*
version/
${
pkgver
}
-
${
pkgrel
}
||
die
"Unable to copy trunk/* to version/
${
pkgver
}
-
${
pkgrel
}
"
out_trace
"Git add new file"
if
!
git diff-index
--quiet
HEAD
;
then
git add
.
||
die
"Unable to git add"
out_trace
"Git add new file"
git add
.
||
die
"Unable to git add"
out_trace
"Git commit message: upgpkg:
${
pkgver
}
-
${
pkgrel
}
"
out_trace
"Git commit message: upgpkg:
${
pkgver
}
-
${
pkgrel
}
"
git commit
-m
"upgpkg:
${
pkgver
}
-
${
pkgrel
}
"
||
die
"Unable to commit"
git commit
-m
"upgpkg:
${
pkgver
}
-
${
pkgrel
}
"
||
die
"Unable to commit"
out_trace
"Push the new version"
out_trace
"Push the new version"
git push
--all
||
die
"Unable to push at git@
${
CI_SERVER_HOST
}
:/
${
CI_PROJECT_PATH
}
.git"
git push
--all
||
die
"Unable to push at git@
${
CI_SERVER_HOST
}
:/
${
CI_PROJECT_PATH
}
.git"
fi
exit
0
exit
0
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