File tree 3 files changed +6
-6
lines changed
3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 1
1
# we want to get the git commit SHA but not all the binary repo data
2
2
.git /objects /pack
3
3
bin /
4
+ ** /* .pyc
4
5
.vagrant
5
6
vagrant /
6
7
docs /
7
8
scripts /gobgp
9
+ # this is the dockerfile for binary compilation, other dockerfiles
10
+ # may want archive artifacts, but this one does not
8
11
* .tar
12
+ ** /* .tar.gz
9
13
* .bz2
10
14
# export from a docker container, no need to copy into any docker containers
11
15
install /v2plugin /rootfs
Original file line number Diff line number Diff line change @@ -7,11 +7,7 @@ NIGHTLY_RELEASE=${NIGHTLY_RELEASE:-}
7
7
8
8
# calculate version
9
9
if command -v git & > /dev/null && git rev-parse & > /dev/null; then
10
- GIT_COMMIT=$( git describe --tags --always 2> /dev/null || echo unknown)
11
- if [ -n " $( git status --porcelain --untracked-files=no) " ]; then
12
- GIT_COMMIT=" $GIT_COMMIT -unsupported"
13
- fi
14
- VERSION=$GIT_COMMIT
10
+ VERSION=$( git describe --abbrev=7 --dirty=-unsupported --tags --always 2> /dev/null || echo unknown)
15
11
else
16
12
echo >&2 ' error: unable to determine the git revision'
17
13
exit 1
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ rm install/v2plugin/${TAR_FILE}
32
32
id=$( docker create $DOCKER_IMAGE true)
33
33
34
34
# create the rootfs archive based on the created container contents
35
- sudo docker export " ${id} " > install/v2plugin/${V2PLUGIN_TAR_FILENAME}
35
+ docker export " ${id} " > install/v2plugin/${V2PLUGIN_TAR_FILENAME}
36
36
37
37
# clean up created container
38
38
docker rm -vf " ${id} "
You can’t perform that action at this time.
0 commit comments