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

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}"