github.com/hs0210/hashicorp-terraform@v0.11.12-beta1/scripts/docker-release/push.sh (about) 1 #!/usr/bin/env bash 2 3 # This script pushes the docker images for the given version of Terraform, 4 # along with the "light", "full" and "latest" tags, up to docker hub. 5 # 6 # You must already be logged in to docker using "docker login" before running 7 # this script. 8 9 set -eu 10 11 VERSION="$1" 12 VERSION_SLUG="${VERSION#v}" 13 14 echo "-- Pushing tags $VERSION_SLUG, light, full and latest up to dockerhub --" 15 echo "" 16 17 docker push "hashicorp/terraform:$VERSION_SLUG" 18 docker push "hashicorp/terraform:light" 19 docker push "hashicorp/terraform:full" 20 docker push "hashicorp/terraform:latest"