api-cache/deploy/image-push.sh

10 lines
241 B
Bash
Raw Permalink Normal View History

2022-12-17 12:59:20 +01:00
#!/bin/sh
# RUN IN REPO ROOT DIR !!
export IMAGE_NAME="git.pbiernat.dev/egommerce/api-cache"
TARGET=${1:-latest}
echo $DOCKER_PASSWORD | docker login git.pbiernat.dev -u $DOCKER_USERNAME --password-stdin
docker push "$IMAGE_NAME:$TARGET"