diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 0d46ff2..6313514 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,6 +1,7 @@ stages: - test - build + - deploy # Test stage test: @@ -46,4 +47,12 @@ deploy_helm_charts: script: - kubectl config use-context $CONTEXT - | - helm upgrade --install gitlab-servicedesk-agent-$ENV ./helm --namespace $NAMESPACE -f $VALUES_FILE --set image.repository=$CI_REGISTRY_IMAGE --set image.tag=$CI_COMMIT_REF + helm upgrade --install warehouse13-$CI_COMMIT_REF \ + ./helm/warehouse13 --namespace $NAMESPACE \ + -f $VALUES_FILE \ + --set api.image=$CI_REGISTRY_IMAGE \ + --set api.image.tag=$CI_COMMIT_REF \ + --set postgres.image.repository=containers.global.bsf.tools/postgres \ + --set postgres.image.tag=15-alpine \ + --set minio.image.repository=containers.global.bsf.tools/minio \ + --set minio.image.tag=latest diff --git a/helm/warehouse13/values.yaml b/helm/warehouse13/values.yaml index 6473597..6ca45a2 100644 --- a/helm/warehouse13/values.yaml +++ b/helm/warehouse13/values.yaml @@ -12,7 +12,7 @@ postgres: image: repository: postgres tag: 15-alpine - pullPolicy: IfNotPresent + pullPolicy: always auth: username: user password: password @@ -38,7 +38,7 @@ minio: image: repository: minio/minio tag: latest - pullPolicy: IfNotPresent + pullPolicy: always auth: rootUser: minioadmin rootPassword: minioadmin @@ -67,7 +67,7 @@ app: image: repository: warehouse13/app tag: latest - pullPolicy: IfNotPresent + pullPolicy: always replicas: 2 env: databaseUrl: "postgresql://user:password@warehouse13-postgres:5432/datalake"