Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
gitlab-runner
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
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
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
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
Lars Seipel
gitlab-runner
Commits
103b982b
Commit
103b982b
authored
10 years ago
by
Kamil Trzcinski
Browse files
Options
Downloads
Patches
Plain Diff
Create Debian and RedHat compatible repositories
parent
08eb27c5
Branches
debian-packages
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.travis.yml
+2
-1
2 additions, 1 deletion
.travis.yml
Makefile
+22
-0
22 additions, 0 deletions
Makefile
commands/version.go
+2
-1
2 additions, 1 deletion
commands/version.go
with
26 additions
and
2 deletions
.travis.yml
+
2
−
1
View file @
103b982b
...
...
@@ -4,6 +4,8 @@ addons:
apt
:
packages
:
-
rpm
-
createrepo
-
dpkg-sig
go
:
-
'
1.4'
env
:
...
...
@@ -18,7 +20,6 @@ before_deploy:
-
make toolchain
-
make build
-
make package
-
'
[[
-z
"$TRAVIS_TAG"
]]
||
make
packagecloud'
deploy
:
-
provider
:
releases
api_key
:
...
...
This diff is collapsed.
Click to expand it.
Makefile
+
22
−
0
View file @
103b982b
...
...
@@ -69,15 +69,31 @@ package-deb:
# Building Debian compatible packages...
make package-deb-fpm
ARCH
=
amd64
make package-deb-fpm
ARCH
=
386
# Building Debian compatible repository...
rm
-f
out/deb/
{
InRelease,Release.gpg
}
cd
out/deb
&&
apt-ftparchive packages
.
>
Packages
cd
out/deb
&&
apt-ftparchive release
.
>
Release
gzip
out/deb/Packages
>
Packages.gz
ifneq
(,$(GPG_KEY))
gpg
--clearsign
-o
out/deb/
{
InRelease,Release
}
gpg
-abs
-o
out/deb/
{
Release.gpg,Release
}
endif
package-rpm
:
# Building RedHat compatible packages...
make package-rpm-fpm
ARCH
=
amd64
make package-rpm-fpm
ARCH
=
i386
createrepo out/rpm
package-deps
:
# Installing packaging dependencies...
gem
install
fpm
ifneq
(,$(GPG_KEY))
# Importing GPG key
@echo
"$(GPG_KEY)"
|
base64
-d
|
gpg
--allow-secret-key-import
--import
-
endif
package-deb-fpm
:
@
mkdir
-p
out/deb/
fpm
-s
dir
-t
deb
-n
$(
NAME
)
-v
$(
VERSION
)
\
...
...
@@ -94,6 +110,9 @@ package-deb-fpm:
--vendor
"ayufan.eu"
\
-a
$(
ARCH
)
\
out/binaries/gitlab-ci-multi-runner-linux-
$(
ARCH
)
=
/usr/bin/gitlab-ci-multi-runner
ifneq
(,$(GPG_KEY))
dpkg-sig
--sign
builder out/deb/
$(
NAME
)
_
$(
ARCH
)
.deb
endif
package-rpm-fpm
:
@
mkdir
-p
out/rpm/
...
...
@@ -108,6 +127,9 @@ package-rpm-fpm:
-m
"Kamil Trzciński <ayufan@ayufan.eu>"
\
--license
"MIT"
\
--vendor
"ayufan.eu"
\
ifneq
(
,
$(
GPG_KEY
)
)
-
-rpm-sign
\
endif
-
a
$(
ARCH
)
\
out/binaries/gitlab-ci-multi-runner-linux-
$(
ARCH
)
=
/usr/bin/gitlab-ci-multi-runner
...
...
This diff is collapsed.
Click to expand it.
commands/version.go
+
2
−
1
View file @
103b982b
package
commands
const
VERSION
=
"dev"
const
VERSION
=
"0.1.17-4-g0e50b6e (0e50b6e)"
const
REVISION
=
"0e50b6e"
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