From 04e21dbf5485d37ddc2a93cda5788aac679125be Mon Sep 17 00:00:00 2001 From: Philipp Rothmann Date: Fri, 13 Jan 2023 15:10:38 +0100 Subject: [PATCH] foo --- .drone.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.drone.yml b/.drone.yml index b448dcc1..639d89cd 100644 --- a/.drone.yml +++ b/.drone.yml @@ -56,11 +56,11 @@ steps: from_secret: docker_registry tags: - latest - - ${DRONE_COMMIT} + - ${DRONE_COMMIT:0:8} - name: deployment image: git.local-it.org/philipp/stack-ssh-deply:latest settings: - stack: ${DRONE_COMMIT} + stack: "foodsoft_${DRONE_COMMIT:0:8}" compose: "deployment/compose.yml" deploy_key: from_secret: drone_deploy_key @@ -71,14 +71,14 @@ steps: reg_pass: from_secret: docker_registry reg_url: git.local-it.org - image: git.local-it.org/foodsoft/foodsoft:${DRONE_COMMIT} + image: git.local-it.org/foodsoft/foodsoft:${DRONE_COMMIT:0:8} generate_secrets: true networks: - proxy environment: - IMAGE: git.local-it.org/foodsoft/foodsoft:${DRONE_COMMIT} - STACK_NAME: ${DRONE_COMMIT} - DOMAIN: "${DRONE_COMMIT}.foodsoft.dev.local-it.cloud" + IMAGE: git.local-it.org/foodsoft/foodsoft:${DRONE_COMMIT:0:8} + STACK_NAME: "foodsoft_${DRONE_COMMIT:0:8}" + DOMAIN: "${DRONE_COMMIT:0:8}.foodsoft.dev.local-it.cloud" LETS_ENCRYPT_ENV: production FOODCOOP_MULTI_INSTALL: true FOODCOOP_NAME: example