Skip to content

Commit

Permalink
lk86/push-daemon-images Update if statements to upload images for any…
Browse files Browse the repository at this point in the history
…thing but unstable releases
  • Loading branch information
lk86 committed Mar 8, 2023
1 parent 27185e5 commit 196d2a4
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions scripts/release-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -135,11 +135,13 @@ if [[ -z "$NOUPLOAD" ]] || [[ "$NOUPLOAD" -eq 0 ]]; then
docker tag "${TAG}" "${HASHTAG}"
docker push "${HASHTAG}"

echo "Release Env Var: \'${DEB_RELEASE}\'"
echo "Release Env Var: ${DEB_RELEASE}"
echo "Release: ${DEB_RELEASE##*=}"

if [[ "${DEB_RELEASE##*=}" = "stable" ]]; then

if [[ "${DEB_RELEASE##*=}" = "unstable" ]]; then
echo "Release is unstable: not pushing to docker hub"
else
echo "Release is public (alpha, beta, berkeley, or stable): pushing image to docker hub"
# tag and push to dockerhub
docker tag "${TAG}" "minaprotocol/${SERVICE}:${VERSION}"
docker push "minaprotocol/${SERVICE}:${VERSION}"
Expand Down

0 comments on commit 196d2a4

Please sign in to comment.