Added templates

This commit is contained in:
Kasper Juul Hermansen 2022-08-14 20:12:22 +02:00
parent 1d259f9c5f
commit 88ef310a9a
Signed by: kjuulh
GPG Key ID: 0F95C140730F2F23
3 changed files with 8 additions and 4 deletions

View File

@ -3,6 +3,7 @@
base: "git@git.front.kjuulh.io:kjuulh/cuddle-base.git" base: "git@git.front.kjuulh.io:kjuulh/cuddle-base.git"
vars: vars:
registry: "kasperhermansen" registry: "kasperhermansen"
port: "3000:3000"
scripts: scripts:
build_release: build_release:

View File

@ -13,7 +13,10 @@ git clone "$DEPLOYMENTS" _deployments
mkdir -p "_deployments/$SERVICE" mkdir -p "_deployments/$SERVICE"
cp "$TMP/docker-compose.deploy_release.yml" "_deployments/$SERVICE/docker-compose.yml" CUDDLE_FETCH_POLICY=never cuddle_cli render_template \
--template-file docker-compose.deploy_release.yml.tmpl \
--dest "_deployments/$SERVICE/docker-compose.yml" \
--extra-var "image=$tag"
cd _deployments cd _deployments

View File

@ -1,10 +1,10 @@
version: '3.7' version: '3.7'
services: services:
{{.service}}: {{ service }}:
image: {{.image}} image: {{ image }}
ports: ports:
- {{.ports}} - {{ port }}
env_file: ".env" env_file: ".env"
restart: always restart: always
depends_on: depends_on: