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"
|
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:
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
@ -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:
|
Loading…
Reference in New Issue
Block a user