Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
rude
build
Commits
baa2276a
Commit
baa2276a
authored
Mar 07, 2019
by
Kolbjørn Barmen
Browse files
Build to apt.uninett.no
parent
828fcda3
Pipeline
#15759
failed with stages
in 38 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
0 → 100644
View file @
baa2276a
stages
:
-
build
-
deploy
build-debian-stretch
:
cache
:
{}
stage
:
build
image
:
debian:stretch
artifacts
:
expire_in
:
1h
paths
:
-
build-stretch
script
:
-
apt-get update && apt-get install git -y
-
git submodule update --init
-
docker build --no-cache -t rude-build .
-
rm -rf build-stretch
-
mkdir build-stretch
-
docker run -i rude-build | tar -x -C build-stretch/
deploy-apt
:
stage
:
deploy
image
:
debian:stretch
artifacts
:
paths
:
-
build-stretch
script
:
-
apt-get update && apt-get install ssh -y
-
(
umask 077;
mkdir -p ~/.ssh;
echo "${SSH_PRIVKEY}" > ~/.ssh/id_rsa;
echo "${SSH_APT_HOSTKEY}" > ~/.ssh/known_hosts;
)
-
scp build-stretch/rude*.deb jenkins@apt.uninett.no:/www/apt.uninett.no/htdocs/debian/pool/stretch/main/binary-amd64/r/rude/
-
scp build-stretch/crude*.deb jenkins@apt.uninett.no:/www/apt.uninett.no/htdocs/debian/pool/stretch/main/binary-amd64/c/crude/
-
ssh jenkins@apt.uninett.no /www/apt.uninett.no/bin/mkrepo.debian
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment