Skip to content

Commit

Permalink
staging takes the current commit
Browse files Browse the repository at this point in the history
  • Loading branch information
roschaefer committed Oct 24, 2024
1 parent 0159c25 commit 8091b2e
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
5 changes: 5 additions & 0 deletions helmfile/environments/default.yaml.gotmpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{{ $image_tag:= env "IMAGE_TAG" | default (exec "../scripts/image_tag.sh" (list) | trim) }}

domain: reformer-network-staging.roschaefer.de
namespace: reformer-network-staging
image_tag: {{ $image_tag }}
2 changes: 1 addition & 1 deletion helmfile/helmfile.yaml.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
environments:
default:
values:
- ./environments/default.yaml
- ./environments/default.yaml.gotmpl
---
repositories:
- name: prometheus-community
Expand Down
2 changes: 2 additions & 0 deletions helmfile/scripts/image_tag.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/usr/bin/env bash
echo "sha-$(git rev-parse HEAD | cut -c 1-7)"
2 changes: 1 addition & 1 deletion helmfile/values/ocelot.yaml.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ underMaintenance: false
global:
image:
pullPolicy: Always
tag: hetzner
tag: {{ .StateValues.image_tag }}

backend:
image:
Expand Down

0 comments on commit 8091b2e

Please sign in to comment.