Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
Schedule
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
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
Jadyn Jäger
Schedule
Commits
aba4581a
Commit
aba4581a
authored
4 years ago
by
Jadyn Jäger
Browse files
Options
Downloads
Patches
Plain Diff
Added CI
parent
d084f50b
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#975
passed with stage
in 36 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+24
-0
24 additions, 0 deletions
.gitlab-ci.yml
with
24 additions
and
0 deletions
.gitlab-ci.yml
0 → 100644
+
24
−
0
View file @
aba4581a
build_release
:
image
:
debian
stage
:
build
script
:
-
apt update > /dev/null
-
apt install openssh-client git -y > /dev/null
#SSH
-
mkdir -p ~/.ssh
-
echo "$SSH_PRIVATE_KEY" >> ~/.ssh/id_dsa
-
chmod 600 ~/.ssh/id_dsa
-
echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
#Building
-
chmod -R 775 ./
-
VERSION="0."$(git rev-list HEAD --count --merges)"."$(git rev-list HEAD --count --no-merges)
-
sed -i s/"0.0.0"/"$VERSION"/g DEBIAN/control
-
sed -i s/"=USER="/"$GITLAB_USER_LOGIN"/g DEBIAN/control
-
cat DEBIAN/control
-
rm -rf .git
-
rm .gitlab-ci.yml
-
dpkg -b ./ ../schedule.deb
#- scp ../eSign.deb deploy@10.16.0.6:/var/www/esign.lgsit.de/builds/notifyer_release_$(echo $VERSION).deb
#- scp ../eSign.deb deploy@10.16.0.6:/var/www/esign.lgsit.de/builds/notifyer_latest_release.deb
only
:
-
master
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