mirror of
https://github.com/foomo/squadron.git
synced 2026-10-06 15:47:04 +00:00
feat: add vars and extend template funcs
This commit is contained in:
+4
-3
@@ -1,5 +1,6 @@
|
||||
version: "2.0"
|
||||
global:
|
||||
enabled: true
|
||||
host: mycompany.com
|
||||
squadron:
|
||||
storefinder:
|
||||
@@ -11,7 +12,7 @@ squadron:
|
||||
builds:
|
||||
default:
|
||||
tag: latest
|
||||
image: docker.mycompany.com/mycomapny/frontend-admin
|
||||
image: storefinder/backend
|
||||
values:
|
||||
image:
|
||||
repository: <% .Squadron.storefinder.backend.builds.default.image %>
|
||||
@@ -24,10 +25,10 @@ squadron:
|
||||
builds:
|
||||
default:
|
||||
tag: latest
|
||||
image: docker.mycompany.com/mycomapny/frontend
|
||||
image: storefinder/frontend
|
||||
values:
|
||||
env:
|
||||
BASE64: <% base64 "1234567890" %>
|
||||
BASE64: <% "1234567890" | b64enc %>
|
||||
DEFAULT_INDEX_VALUE: <% defaultIndex .Global "notexists" "fallback" %>
|
||||
DEFAULT_VALUE: <% "" | default "fallback" %>
|
||||
ENV: <% env "SHELL" %>
|
||||
|
||||
+5
-4
@@ -1,5 +1,6 @@
|
||||
version: "2.0"
|
||||
global:
|
||||
enabled: true
|
||||
host: mycompany.com
|
||||
squadron:
|
||||
storefinder:
|
||||
@@ -11,10 +12,10 @@ squadron:
|
||||
builds:
|
||||
default:
|
||||
tag: latest
|
||||
image: docker.mycompany.com/mycomapny/frontend-admin
|
||||
image: storefinder/backend
|
||||
values:
|
||||
image:
|
||||
repository: docker.mycompany.com/mycomapny/frontend-admin
|
||||
repository: storefinder/backend
|
||||
tag: latest
|
||||
frontend:
|
||||
chart:
|
||||
@@ -24,7 +25,7 @@ squadron:
|
||||
builds:
|
||||
default:
|
||||
tag: latest
|
||||
image: docker.mycompany.com/mycomapny/frontend
|
||||
image: storefinder/frontend
|
||||
values:
|
||||
env:
|
||||
BASE64: MTIzNDU2Nzg5MA==
|
||||
@@ -33,7 +34,7 @@ squadron:
|
||||
ENV: /bin/zsh
|
||||
GLOBAL: mycompany.com
|
||||
image:
|
||||
repository: docker.mycompany.com/mycomapny/frontend
|
||||
repository: storefinder/frontend
|
||||
tag: latest
|
||||
values: |
|
||||
foo: bar
|
||||
|
||||
+2
-2
@@ -43,7 +43,7 @@ spec:
|
||||
spec:
|
||||
containers:
|
||||
- name: storefinder-backend
|
||||
image: 'docker.mycompany.com/mycomapny/frontend-admin:latest'
|
||||
image: 'storefinder/backend:latest'
|
||||
ports:
|
||||
- name: http
|
||||
protocol: TCP
|
||||
@@ -93,7 +93,7 @@ spec:
|
||||
spec:
|
||||
containers:
|
||||
- name: storefinder-frontend
|
||||
image: 'docker.mycompany.com/mycomapny/frontend:latest'
|
||||
image: 'storefinder/frontend:latest'
|
||||
ports:
|
||||
- name: http
|
||||
protocol: TCP
|
||||
|
||||
Vendored
+4
-3
@@ -2,6 +2,7 @@ version: "2.0"
|
||||
|
||||
global:
|
||||
host: mycompany.com
|
||||
enabled: true
|
||||
|
||||
squadron:
|
||||
storefinder:
|
||||
@@ -10,7 +11,7 @@ squadron:
|
||||
builds:
|
||||
default:
|
||||
tag: latest
|
||||
image: docker.mycompany.com/mycomapny/frontend
|
||||
image: storefinder/frontend
|
||||
values:
|
||||
image:
|
||||
tag: <% .Squadron.storefinder.frontend.builds.default.tag %>
|
||||
@@ -18,7 +19,7 @@ squadron:
|
||||
env:
|
||||
ENV: <% env "SHELL" %>
|
||||
GLOBAL: <% .Global.host %>
|
||||
BASE64: <% base64 "1234567890" %>
|
||||
BASE64: <% "1234567890" | b64enc %>
|
||||
DEFAULT_VALUE: <% "" | default "fallback" %>
|
||||
DEFAULT_INDEX_VALUE: <% defaultIndex .Global "notexists" "fallback" %>
|
||||
# ONE_PASSWORD: <% op "ACCOUNT_NAME" "UUID" "FIELD" %>
|
||||
@@ -31,7 +32,7 @@ squadron:
|
||||
builds:
|
||||
default:
|
||||
tag: latest
|
||||
image: docker.mycompany.com/mycomapny/frontend-admin
|
||||
image: storefinder/backend
|
||||
values:
|
||||
image:
|
||||
tag: <% .Squadron.storefinder.backend.builds.default.tag %>
|
||||
|
||||
Reference in New Issue
Block a user