put static_registry as first argument
This commit is contained in:
4
build.sh
4
build.sh
@@ -1,3 +1,3 @@
|
||||
#!/usr/bin/env bash
|
||||
./build_containers.sh
|
||||
./build_registry.py > static_registry/default.nix
|
||||
./build_containers.sh $1
|
||||
./build_registry.py $1 > ${1}/default.nix
|
||||
|
||||
@@ -1,11 +1,12 @@
|
||||
#!/usr/bin/env bash
|
||||
set -x
|
||||
for dir in $(ls static_registry)
|
||||
BASE=$1
|
||||
for dir in $(ls $BASE)
|
||||
do
|
||||
[ ! -d static_registry/$dir ] && continue
|
||||
[ ! -d $BASE/$dir ] && continue
|
||||
pushd .
|
||||
echo $dir
|
||||
cd static_registry/$dir
|
||||
cd $BASE/$dir
|
||||
COMMIT_HASH=$(docker build . | tail -n 1 | cut -d ' ' -f3)
|
||||
TAG=$(basename $(pwd)):$COMMIT_HASH
|
||||
docker tag $COMMIT_HASH $TAG
|
||||
|
||||
@@ -1,7 +1,10 @@
|
||||
#!/usr/bin/env python3
|
||||
import sys
|
||||
from pathlib import Path
|
||||
|
||||
pathlist = Path("static_registry").glob('**/*.tar.gz')
|
||||
base = sys.argv[1]
|
||||
|
||||
pathlist = Path(base).glob('**/*.tar.gz')
|
||||
registry = {
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user