docker hub

This commit is contained in:
2023-09-27 15:28:18 +02:00
parent c0f1bddf29
commit 6f2966800b
2 changed files with 23 additions and 1 deletions

View File

@ -4,6 +4,7 @@ stages:
variables:
IMAGE_NAME: $CI_REGISTRY/$CI_PROJECT_PATH
HUB_IMAGE_NAME: wollud1969/sinkserver
build:
image: registry.hottis.de/dockerized/docker-bash:latest
@ -20,6 +21,9 @@ build:
docker tag $IMAGE_NAME:${CI_COMMIT_SHORT_SHA} $IMAGE_NAME:${CI_COMMIT_TAG};
docker push $IMAGE_NAME:${CI_COMMIT_TAG};
fi
- docker login -u $DOCKER_HUB_LOGIN -p $DOCKER_HUB_PASSWORD
- docker tag $IMAGE_NAME:${CI_COMMIT_SHORT_SHA} ${HUB_IMAGE_NAME}:$(CI_COMMIT_SHORT_SHA}
deploy:
image: registry.hottis.de/dockerized/docker-bash:latest
stage: deploy