Skip to content
Snippets Groups Projects
Commit e0e6a192 authored by Maximilian Schaldach's avatar Maximilian Schaldach :cactus:
Browse files

docker login in pipeline

parent f04fa8fd
No related branches found
No related tags found
1 merge request!180Resolve "Switch to HubTerra TSMDL"
Pipeline #405171 failed
......@@ -6,6 +6,7 @@ visualization-e2e:
- "apk add --no-cache curl jq python3"
- "cp .env.example .env"
- "cp .env .gitlab/ci/.env"
- "echo \"$TSMDL_REGISTRY_TOKEN\" | docker login -u \"$CI_REGISTRY_USER\" --password-stdin \"$TSMDL_REGISTRY\""
- "docker compose up -d --force-recreate -V --quiet-pull"
- "sleep 20"
script:
......@@ -44,6 +45,7 @@ avro-thing-creation-e2e:
- "python3 -m pip install --upgrade pip"
- "python3 -m pip install fastavro paho-mqtt==1.6.1"
- "cp .env.example .env"
- "echo \"$TSMDL_REGISTRY_TOKEN\" | docker login -u \"$CI_REGISTRY_USER\" --password-stdin \"$TSMDL_REGISTRY\""
- "docker compose up -d frontend mqtt-broker --force-recreate -V --quiet-pull"
- "sleep 20"
script:
......@@ -59,6 +61,7 @@ object-storage-e2e:
before_script:
- "apk add --no-cache curl jq"
- "cp .env.example .env"
- "echo \"$TSMDL_REGISTRY_TOKEN\" | docker login -u \"$CI_REGISTRY_USER\" --password-stdin \"$TSMDL_REGISTRY\""
- "docker compose up -d --force-recreate -V --quiet-pull --build"
- "sleep 20"
script:
......@@ -84,6 +87,7 @@ database-e2e:
before_script:
- "apk add --no-cache postgresql-client jq"
- "cp .env.example .env"
- "echo \"$TSMDL_REGISTRY_TOKEN\" | docker login -u \"$CI_REGISTRY_USER\" --password-stdin \"$TSMDL_REGISTRY\""
- "docker compose up -d --force-recreate -V --quiet-pull --build"
- "sleep 20"
script:
......@@ -107,6 +111,7 @@ frost-e2e:
before_script:
- "apk add --no-cache curl jq"
- "cp .env.example .env"
- "echo \"$TSMDL_REGISTRY_TOKEN\" | docker login -u \"$CI_REGISTRY_USER\" --password-stdin \"$TSMDL_REGISTRY\""
- "docker compose up -d --force-recreate -V --quiet-pull --build"
- "sleep 20"
script:
......
......@@ -6,6 +6,7 @@ docker-service-test:
- "apk add --no-cache bash"
- "mv .env.example .env"
- "cp .env .gitlab/ci/.env"
- "echo \"$TSMDL_REGISTRY_TOKEN\" | docker login -u \"$CI_REGISTRY_USER\" --password-stdin \"$TSMDL_REGISTRY\""
- "docker compose up -d --force-recreate -V --quiet-pull"
- "docker compose logs init"
- "sleep 20"
......@@ -29,6 +30,7 @@ mqtt-service-test:
- "python3 -m pip install --upgrade pip"
- "python3 -m pip install paho-mqtt==1.6.1"
- "mv .env.example .env"
- "echo \"$TSMDL_REGISTRY_TOKEN\" | docker login -u \"$CI_REGISTRY_USER\" --password-stdin \"$TSMDL_REGISTRY\""
- "docker compose up -d --force-recreate -V --quiet-pull"
- "sleep 20"
script:
......@@ -45,6 +47,7 @@ proxy-test:
- "export DJANGO_TRUSTED_ORIGINS=http://docker:80"
- "apk add --no-cache curl"
- "cp .env.example .env"
- "echo \"$TSMDL_REGISTRY_TOKEN\" | docker login -u \"$CI_REGISTRY_USER\" --password-stdin \"$TSMDL_REGISTRY\""
- "docker compose up -d --force-recreate -V --quiet-pull"
- "sleep 20"
script:
......@@ -64,6 +67,7 @@ object-storage-test:
before_script:
- "apk add --no-cache curl"
- "cp .env.example .env"
- "echo \"$TSMDL_REGISTRY_TOKEN\" | docker login -u \"$CI_REGISTRY_USER\" --password-stdin \"$TSMDL_REGISTRY\""
- "docker compose up -d --force-recreate -V --quiet-pull"
- "sleep 30"
script:
......@@ -77,6 +81,7 @@ database-test:
before_script:
- "apk add --no-cache postgresql-client"
- "cp .env.example .env"
- "echo \"$TSMDL_REGISTRY_TOKEN\" | docker login -u \"$CI_REGISTRY_USER\" --password-stdin \"$TSMDL_REGISTRY\""
- "docker compose up -d --force-recreate -V --quiet-pull"
- "sleep 20"
script:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment