Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
VideoLAN
docker-images
Commits
28603fb7
Commit
28603fb7
authored
Aug 25, 2016
by
Konstantin Pavlov
Browse files
rebuild.sh: rebuild changed images.
parent
60da5f88
Changes
1
Hide whitespace changes
Inline
Side-by-side
rebuild.sh
View file @
28603fb7
#!/bin/sh
# this is a helper script to rebuild all base images and then all dependant images
# rebuilding dind image is too dangerous
BASE
=
""
LATE
=
""
BASE
=
"jessie sid"
CHANGED
=
$(
for
i
in
`
git log
--name-only
--pretty
=
oneline
--full-index
$GIT_PREVIOUS_COMMIT
..
$GIT_COMMIT
|
grep
-vE
'^[0-9a-f]{40} '
`
;
do
echo
`
dirname
$i
`
;
done
|
sort
|
uniq
)
DEPS
=
"vlc-debian-unstable vlc-debian-android vlc-debian-win32 vlc-debian-win64"
for
dir
in
$CHANGED
;
do
case
$dir
in
videolan-base
*
)
BASE
=
"
$BASE
$dir
"
;;
*
)
LATE
=
"
$LATE
$dir
"
;;
.
)
;;
esac
done
for
type
in
$BASE
;
do
make
-C
videolan-base/
$type
push
for
b
in
$BASE
;
do
make
-C
$b
push
done
for
dep
in
$
DEPS
;
do
make
-C
$
dep
push
for
l
in
$
LATE
;
do
make
-C
$
l
push
done
Write
Preview
Supports
Markdown
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