diff --git a/test/docker-registry/test.sh b/test/docker-registry/test.sh index 4ade2fbc..c2b1eeb4 100755 --- a/test/docker-registry/test.sh +++ b/test/docker-registry/test.sh @@ -1,10 +1,12 @@ #!/usr/bin/env bash -set -euo pipefail +set -eo pipefail -export VERSION=$GITHUB_COMMIT-test +export VERSION=${GITHUB_SHA}-test export KO_DOCKER_REPO=ko.local +set -u + source ../lib/lib.sh build_anubis_ko diff --git a/test/git-push/test.sh b/test/git-push/test.sh index a6d5f97c..832b882b 100755 --- a/test/git-push/test.sh +++ b/test/git-push/test.sh @@ -2,7 +2,7 @@ set -eo pipefail -export VERSION=$GITHUB_COMMIT-test +export VERSION=${GITHUB_SHA}-test export KO_DOCKER_REPO=ko.local set -u @@ -21,16 +21,16 @@ docker compose up -d sleep 2 ( - cd var && \ - mkdir foo && \ - cd foo && \ - git init && \ - touch README && \ - git add . && \ - git config user.name "Anubis CI" && \ - git config user.email "social+anubis-ci@techaro.lol" && \ - git commit -sm "initial commit" && \ - git push -u http://localhost:3000/git/foo.git master + cd var && + mkdir foo && + cd foo && + git init && + touch README && + git add . && + git config user.name "Anubis CI" && + git config user.email "social+anubis-ci@techaro.lol" && + git commit -sm "initial commit" && + git push -u http://localhost:3000/git/foo.git master ) -exit 0 \ No newline at end of file +exit 0