Added templates
This commit is contained in:
parent
1d259f9c5f
commit
88ef310a9a
@ -3,6 +3,7 @@
|
||||
base: "git@git.front.kjuulh.io:kjuulh/cuddle-base.git"
|
||||
vars:
|
||||
registry: "kasperhermansen"
|
||||
port: "3000:3000"
|
||||
|
||||
scripts:
|
||||
build_release:
|
||||
|
@ -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
|
||||
|
||||
|
@ -1,10 +1,10 @@
|
||||
version: '3.7'
|
||||
|
||||
services:
|
||||
{{.service}}:
|
||||
image: {{.image}}
|
||||
{{ service }}:
|
||||
image: {{ image }}
|
||||
ports:
|
||||
- {{.ports}}
|
||||
- {{ port }}
|
||||
env_file: ".env"
|
||||
restart: always
|
||||
depends_on:
|
Loading…
Reference in New Issue
Block a user