#!/usr/bin/env bash
set -e
set -u
set -v

docker_image=$1

user=lancelet

docker login \
    -e="$DOCKER_EMAIL" \
    -u="$DOCKER_USERNAME" \
    -p="$DOCKER_PASSWORD"
docker push $user/$docker_image:$DOCKER_IMAGE_VERSION
docker push $user/$docker_image:latest

#!/usr/bin/env bash
set -e
set -u
set -v

docker_image=$1

user=lancelet

docker login \
    -u="$DOCKER_USERNAME" \
    -p="$DOCKER_PASSWORD"
docker push $user/$docker_image:$DOCKER_IMAGE_VERSION
docker push $user/$docker_image:latest

Remove DOCKER_EMAIL from login step (deprecated)
Remove DOCKER_EMAIL from login step (deprecated)
