github.com/mysteriumnetwork/node@v0.0.0-20240516044423-365054f76801/bin/helpers/docker.sh (about)

     1  #!/bin/bash
     2  
     3  # Uploads already created Docker image to Docker Hub
     4  #
     5  # Usage:
     6  # > docker_release_image <image-local> <image-release>
     7  #
     8  # Uploads specific tag:
     9  # > docker_release_image mysterium-node:alpine mysteriumnetwork/mysterium-node:0.0.1
    10  docker_release_image () {
    11      IMAGE_LOCAL=$1;
    12      IMAGE_RELEASE=$2;
    13  
    14      printf "Publishing '${IMAGE_RELEASE}' image..\n"
    15      docker tag ${IMAGE_LOCAL} ${IMAGE_RELEASE}
    16      docker push ${IMAGE_RELEASE}
    17  }