-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Jenkins build for non-master branch
(trying to)
- Loading branch information
Showing
2 changed files
with
19 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| #!/bin/bash | ||
|
|
||
| # Temporary workaround for docker/util not rebuilding the specific version of the image | ||
|
|
||
| # from destroy.sh (adapted) | ||
|
|
||
| result=$(docker ps -a | grep $maintainer/$imagename:$tag) | ||
|
|
||
| if [ ! -z "$result" ]; then | ||
| docker rm -f $(docker ps -a | grep $maintainer/$imagename:$tag | awk '{print $1}') | ||
| docker rmi -f $maintainer/$imagename:$tag | ||
| fi | ||
|
|
||
| # from build.sh (adapted) | ||
|
|
||
| echo "Building new Docker image($maintainer/$imagename:$tag)" | ||
| docker build --rm -t $maintainer/$imagename:$tag --build-arg maintainer=$maintainer --build-arg imagename=$imagename . |