Skip to content

Commit 8091b2e

Browse files
committed
staging takes the current commit
1 parent 0159c25 commit 8091b2e

File tree

4 files changed

+9
-2
lines changed

4 files changed

+9
-2
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{{ $image_tag:= env "IMAGE_TAG" | default (exec "../scripts/image_tag.sh" (list) | trim) }}
2+
3+
domain: reformer-network-staging.roschaefer.de
4+
namespace: reformer-network-staging
5+
image_tag: {{ $image_tag }}

helmfile/helmfile.yaml.gotmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
environments:
33
default:
44
values:
5-
- ./environments/default.yaml
5+
- ./environments/default.yaml.gotmpl
66
---
77
repositories:
88
- name: prometheus-community

helmfile/scripts/image_tag.sh

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/usr/bin/env bash
2+
echo "sha-$(git rev-parse HEAD | cut -c 1-7)"

helmfile/values/ocelot.yaml.gotmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ underMaintenance: false
1111
global:
1212
image:
1313
pullPolicy: Always
14-
tag: hetzner
14+
tag: {{ .StateValues.image_tag }}
1515

1616
backend:
1717
image:

0 commit comments

Comments
 (0)