Files
identity-service/deploy/scripts/image-push.sh
Piotr Biernat a5d4e0be62
Some checks failed
ci/woodpecker/push/workflow Pipeline failed
Updated ci/cd scripts
2025-12-13 16:13:07 +01:00

15 lines
375 B
Bash
Executable File

#!/bin/sh
# RUN IN REPO ROOT DIR !!
export IMAGE_PREFIX="git.pbiernat.space/egommerce/identity"
# export IMAGE_PREFIX="localhost:32000/egommerce/identity"
export SERVER_IMAGE="$IMAGE_PREFIX-svc"
TARGET=${1:-latest}
echo $DOCKER_PASSWORD | docker login git.pbiernat.space -u $DOCKER_USERNAME --password-stdin
docker push "$SERVER_IMAGE:$TARGET"
# Restart container
# TODO