-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from james-stevens/dev
add some push to repo scripts
- Loading branch information
Showing
3 changed files
with
21 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
epprest |
File renamed without changes.
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,20 @@ | ||
#! /bin/sh | ||
|
||
if test "$1"; then imgs="$*"; else imgs="$(cat list)"; fi | ||
|
||
for img in ${imgs} | ||
do | ||
id=$(docker image ls | awk '{ if ($1=="'"${img}"'") print $3 }') | ||
|
||
docker tag ${id} docker.jrcs.net/${img} | ||
docker push docker.jrcs.net/${img} | ||
done | ||
|
||
while test "$(docker ps -aq)" | ||
do | ||
docker rm $(docker ps -aq) | ||
done | ||
while test "$(docker images -f "dangling=true" -q)" | ||
do | ||
docker rmi $(docker images -f "dangling=true" -q) | ||
done |