Commit 30725e99 authored by Adam Štěpánek's avatar Adam Štěpánek
Browse files

Use latest in the run scripts

parent 7839bead
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -37,11 +37,11 @@ $hash = $hash.ToLower();
# create a container
if ($debug) {
    $container = (docker create -it --network none `
            -e WIDTH=$width -e HEIGHT=$height -e DEBUG=true hash /hash.sh $hash)
            -e WIDTH=$width -e HEIGHT=$height -e DEBUG=true cafstep/hash:latest /hash.sh $hash)
}
else {
    $container = (docker create -it --network none `
            -e WIDTH=$width -e HEIGHT=$height hash /hash.sh $hash)
            -e WIDTH=$width -e HEIGHT=$height cafstep/hash:latest /hash.sh $hash)
}
if (-Not($?)) {
    Write-Host "Failed to create a Docker container."
+2 −2
Original line number Diff line number Diff line
@@ -39,10 +39,10 @@ HEIGHT=${HEIGHT=-4960}

if [ -n $DEBUG ]; then
    CONTAINER=$(docker create -it --network none \
            -e WIDTH=$WIDTH -e HEIGHT=$HEIGHT -e DEBUG=true cafstep/hash:v0.1.0 /hash.sh $HASH)
            -e WIDTH=$WIDTH -e HEIGHT=$HEIGHT -e DEBUG=true cafstep/hash:latest /hash.sh $HASH)
else
    CONTAINER=$(docker create -it --network none \
            -e WIDTH=$WIDTH -e HEIGHT=$HEIGHT cafstep/hash:v0.1.0 /hash.sh $HASH)
            -e WIDTH=$WIDTH -e HEIGHT=$HEIGHT cafstep/hash:latest /hash.sh $HASH)
fi

if [ $? -ne 0 ]; then