summaryrefslogtreecommitdiff
path: root/vendor/github.com/hashicorp/terraform/scripts/docker-release/push.sh
blob: e65cd61bc65a081f339338bb1d30325005cb279a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/env bash

# This script pushes the docker images for the given version of Terraform,
# along with the "light", "full" and "latest" tags, up to docker hub.
#
# You must already be logged in to docker using "docker login" before running
# this script.

set -eu

VERSION="$1"
VERSION_SLUG="${VERSION#v}"

echo "-- Pushing tags $VERSION_SLUG, light, full and latest up to dockerhub --"
echo ""

docker push "hashicorp/terraform:$VERSION_SLUG"
docker push "hashicorp/terraform:light"
docker push "hashicorp/terraform:full"
docker push "hashicorp/terraform:latest"