File tree 3 files changed +16
-5
lines changed
3 files changed +16
-5
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,12 @@ DOCKER_REPO_NAME?="allegro"
9
9
# commits it and tags the created commit with the appropriate snapshot version.
10
10
release-new-version : new_version = $(shell ./get_version.sh generate)
11
11
release-new-version :
12
- docker build --force-rm -f docker/Dockerfile-deb -t ralph-deb .
12
+ docker build \
13
+ --force-rm \
14
+ -f docker/Dockerfile-deb \
15
+ --build-arg GIT_USER_NAME=" $( shell git config user.name) " \
16
+ --build-arg GIT_USER_EMAIL=" $( shell git config user.email) " \
17
+ -t ralph-deb:latest .
13
18
docker run --rm -it -v $(shell pwd) :/volume ralph-deb:latest release-new-version
14
19
docker image rm --force ralph-deb:latest
15
20
git add debian/changelog
@@ -19,14 +24,14 @@ release-new-version:
19
24
# build-package builds a release version of the package using the generated
20
25
# changelog and the tag.
21
26
build-package :
22
- docker build --force-rm -f docker/Dockerfile-deb -t ralph-deb .
27
+ docker build --force-rm -f docker/Dockerfile-deb -t ralph-deb:latest .
23
28
docker run --rm -v $(shell pwd) :/volume ralph-deb:latest build-package
24
29
docker image rm --force ralph-deb:latest
25
30
26
31
# build-snapshot-package renerates a snapshot changelog and uses it to build
27
32
# snapshot version of the package. It is mainly used for testing.
28
33
build-snapshot-package :
29
- docker build --force-rm -f docker/Dockerfile-deb -t ralph-deb .
34
+ docker build --force-rm -f docker/Dockerfile-deb -t ralph-deb:latest .
30
35
docker run --rm -v $(shell pwd) :/volume ralph-deb:latest build-snapshot-package
31
36
docker image rm --force ralph-deb:latest
32
37
Original file line number Diff line number Diff line change @@ -4,6 +4,9 @@ LABEL maintainer="Allegro.pl Sp. z o.o. opensource@allegro.pl"
4
4
LABEL authors="Allegro.pl Sp. z o.o. and Contributors opensource@allegro.pl"
5
5
LABEL description="Helper image to build deb package for Ralph."
6
6
7
+ ARG GIT_USER_NAME='root'
8
+ ARG GIT_USER_EMAIL='root@localhost'
9
+
7
10
ENV DEBIAN_FRONTEND=noninteractive
8
11
ENV SHELL=/bin/bash
9
12
ENV TERM=xterm
@@ -13,7 +16,10 @@ ENV RALPH_DIR=/opt/ralph
13
16
RUN apt-get update && \
14
17
apt-get -y install build-essential debhelper devscripts equivs dh-virtualenv \
15
18
git libmysqlclient-dev python3 python3-dev libffi-dev nodejs npm git-buildpackage \
16
- vim-tiny
19
+ vim-tiny && \
20
+ rm -rf /var/lib/apt/lists/* && \
21
+ git config --global user.name "$GIT_USER_NAME" && \
22
+ git config --global user.email "$GIT_USER_EMAIL"
17
23
18
24
COPY . $RALPH_DIR
19
25
Original file line number Diff line number Diff line change 18
18
fi
19
19
20
20
echo ${VERSION}
21
- gbp dch --ignore-branch --spawn-editor=release --new-version " ${VERSION} " ${VERSION_PARAMS}
21
+ gbp dch --ignore-branch --git-author -- spawn-editor=release --new-version " ${VERSION} " ${VERSION_PARAMS}
You can’t perform that action at this time.
0 commit comments