aboutsummaryrefslogtreecommitdiff
blob: 06f84b1c600a8023e0e189890e1780b8cdb618dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash

set -e

if [[ -z "$TARGET" ]]; then
	echo "TARGET environment variable must be set e.g. TARGET=stage3-amd64-openrc."
	exit 1
fi

# Split the TARGET variable into three elements separated by hyphens
IFS=- read -r NAME ARCH SUFFIX <<< "${TARGET}"

ORG=${ORG:-gentoo}

# Push built images
docker push --all-tags "${ORG}/${NAME}"