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"
vars:
registry: "kasperhermansen"
port: "3000:3000"
scripts:
build_release:

View File

@ -13,7 +13,10 @@ git clone "$DEPLOYMENTS" _deployments
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

View File

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