Skip to content

Commit

Permalink
Moved Liquibase image into values.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
karaeth committed Dec 14, 2023
1 parent d02cd00 commit 54cbc78
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
5 changes: 1 addition & 4 deletions DB-Changelog-Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
FROM liquibase/liquibase

COPY /src/main/resources/db/changelog /liquibase/db/changelog
COPY /src/main/resources/db/changelog.yaml /liquibase/db


COPY /src/main/resources/db /liquibase/db
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ spec:
spec:
initContainers:
- name: liquibase
image: liquibase:0.1.12
image: "{{ .Values.liquibaseImage.repository }}:{{ .Values.liquibaseImage.tag }}"
command: ["/bin/sh", "-c"]
args:
- liquibase update --changeLogFile=db/changelog.yaml;
Expand Down
7 changes: 6 additions & 1 deletion k8s/helm/tngkds/charts/tngkds-backend/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ imagePullSecrets: tng-distribution-pull-secret
nameOverride: ""
fullnameOverride: ""

# Liquibase
liquibaseImage:
repository: ghcr.io/worldhealthorganization/tng-key-distribution/tngkds-liquibase
tag: "0.0.1"

serviceAccount:
# Specifies whether a service account should be created
create: true
Expand Down Expand Up @@ -111,7 +116,7 @@ spring:
server:
port: 8080


# Smart TN Gateway
gateway:
connector:
enabled: true
Expand Down

0 comments on commit 54cbc78

Please sign in to comment.