Add `docker-upload` script (#1308)

This is a utility script that I created for updating Docker images for
each release
This commit is contained in:
Gabriel Gonzalez 2019-09-12 21:07:06 -07:00 committed by mergify[bot]
parent 88c2f29a57
commit 272b733e52
1 changed files with 17 additions and 0 deletions

17
scripts/docker-upload.sh Executable file
View File

@ -0,0 +1,17 @@
JOBSET=master
function upload {
NAME="$1"
VERSION="$2"
curl --location --remote-name "https://hydra.dhall-lang.org/job/dhall-haskell/${JOBSET}/image-${NAME}/latest/download/1/docker-image-${NAME}.tar.gz"
skopeo copy --dest-creds=gabriel439:$(< dockerPassword.txt) "docker-archive:docker-image-${NAME}.tar.gz" "docker://dhallhaskell/${NAME}"
skopeo copy --dest-creds=gabriel439:$(< dockerPassword.txt) "docker-archive:docker-image-${NAME}.tar.gz" "docker://dhallhaskell/${NAME}:${VERSION}"
}
upload dhall 1.26.0
upload dhall-json 1.4.1
upload dhall-bash 1.0.23
upload dhall-nix 1.1.8
upload dhall-lsp-server 1.0.1