api-registry/deploy/image-push.sh

10 lines
244 B
Bash
Raw Normal View History

2022-12-02 22:05:47 +01:00
#!/bin/sh
# RUN IN REPO ROOT DIR !!
export IMAGE_NAME="git.pbiernat.dev/egommerce/api-registry"
2022-12-02 22:38:15 +01:00
TARGET=${1:-latest}
2022-12-02 22:05:47 +01:00
echo $DOCKER_PASSWORD | docker login git.pbiernat.dev -u $DOCKER_USERNAME --password-stdin
2022-12-02 22:38:15 +01:00
docker push "$IMAGE_NAME:$TARGET"