push to docker hub too
This commit is contained in:
parent
46d840e9de
commit
ef84704340
@ -4,6 +4,8 @@ stages:
|
||||
|
||||
variables:
|
||||
IMAGE_NAME: $CI_REGISTRY/$CI_PROJECT_PATH
|
||||
HUB_IMAGE_NAME: $DOCKER_HUB_LOGIN/$CI_PROJECT_NAME
|
||||
|
||||
|
||||
dockerize:
|
||||
image: registry.hottis.de/dockerized/docker-bash:latest
|
||||
@ -19,6 +21,12 @@ dockerize:
|
||||
- if [ "$CI_COMMIT_TAG" != "" ]; then
|
||||
docker tag $IMAGE_NAME:${CI_COMMIT_SHORT_SHA} $IMAGE_NAME:${CI_COMMIT_TAG};
|
||||
docker push $IMAGE_NAME:${CI_COMMIT_TAG};
|
||||
|
||||
docker login -u $DOCKER_HUB_LOGIN -p $DOCKER_HUB_PASSWORD;
|
||||
docker tag $IMAGE_NAME:${CI_COMMIT_SHORT_SHA} $HUB_IMAGE_NAME:${CI_COMMIT_TAG};
|
||||
docker tag $IMAGE_NAME:${CI_COMMIT_SHORT_SHA} $HUB_IMAGE_NAME:latest;
|
||||
docker push $HUB_IMAGE_NAME:${CI_COMMIT_TAG};
|
||||
docker push $HUB_IMAGE_NAME:latest;
|
||||
fi
|
||||
|
||||
.deploy:
|
||||
@ -49,9 +57,10 @@ dockerize:
|
||||
- docker network connect external-network $CONTAINER_NAME
|
||||
|
||||
|
||||
deploy-berresheim:
|
||||
extends: .deploy
|
||||
tags:
|
||||
- berresheim-deployment-only
|
||||
environment:
|
||||
name: berresheim-production
|
||||
# deploy-berresheim:
|
||||
# extends: .deploy
|
||||
# tags:
|
||||
# - berresheim-deployment-only
|
||||
# environment:
|
||||
# name: berresheim-production
|
||||
#
|
||||
|
@ -1,5 +1,5 @@
|
||||
create database cem_monitoring;
|
||||
-- create extension timescaledb;
|
||||
create extension timescaledb;
|
||||
|
||||
|
||||
|
||||
@ -22,7 +22,7 @@ create table variable_t (
|
||||
);
|
||||
|
||||
create table measurement_t (
|
||||
time timestamp without time zone not null,
|
||||
time timestamptz not null,
|
||||
variable integer references variable_t (id),
|
||||
value float
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user