Skip to content

Commit

Permalink
use SHORT_SHA
Browse files Browse the repository at this point in the history
  • Loading branch information
emilburzo committed Feb 21, 2024
1 parent 9122462 commit 59af355
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions .ci/deploy.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env bash
#!/bin/bash

kubectl apply -f .ci/deploy.yaml
SHORT_SHA="$(git rev-parse --short HEAD)"
echo "SHORT_SHA=${SHORT_SHA}"
cat .ci/deploy.yaml | sed "s/SHORT_SHA/${SHORT_SHA}/g" | kubectl apply -f -
2 changes: 1 addition & 1 deletion .ci/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ spec:
spec:
containers:
- name: stirimm-webapp
image: emilburzo/stirimm-webapp:latest
image: emilburzo/stirimm-webapp:SHORT_SHA
env:
- name: DB_HOST
valueFrom:
Expand Down

0 comments on commit 59af355

Please sign in to comment.