Skip to content

Commit

Permalink
Merge pull request #12800 from MinaProtocol/lk86/push-daemon-images
Browse files Browse the repository at this point in the history
lk86/push-daemon-images Print debian releases
  • Loading branch information
lk86 authored Mar 10, 2023
2 parents 6f53f32 + 9703587 commit 9f1fe53
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion scripts/release-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,13 @@ if [[ -z "$NOUPLOAD" ]] || [[ "$NOUPLOAD" -eq 0 ]]; then
docker tag "${TAG}" "${HASHTAG}"
docker push "${HASHTAG}"

if [[ "${DEB_RELEASE##*=}" = 'stable' ]]; then
echo "Release Env Var: ${DEB_RELEASE}"
echo "Release: ${DEB_RELEASE##*=}"

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 9f1fe53

Please sign in to comment.