Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/karate-tests-on-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,10 @@ jobs:
# The -i flag is needed to write new image tag directly to values file
sed -i "0,/tag:.*/s//tag: \"sha-${{ github.sha }}\"/" deploy/values-documents-api.yaml.gotmpl

# we need to override "latest" ref of service chart inside local-env to run tests against the current commit service chart version and not against latest from master
# we need to override "latest" ref of service chart inside local-env to run tests against the current commit service chart version and not against latest from master
sed -i "0,/git+https:\/\/github.com\/TourmalineCore\/${{ github.event.repository.name }}.git?ref=.*/s//git+https:\/\/github.com\/TourmalineCore\/${{ github.event.repository.name }}.git?ref=${{ github.sha }}/" deploy/helmfile.yaml

sed -i "0,/git::https:\/\/github.com\/TourmalineCore\/${{ github.event.repository.name }}.git@\/ci\/values-local-env.yaml?ref=.*/s//git::https:\/\/github.com\/TourmalineCore\/${{ github.event.repository.name }}.git@\/ci\/values-local-env.yaml?ref=${{ github.sha }}/" deploy/helmfile.yaml
sed -i "0,/git::https:\/\/github.com\/TourmalineCore\/${{ github.event.repository.name }}.git@\/Api\/ci\/values-local-env.yaml?ref=.*/s//git::https:\/\/github.com\/TourmalineCore\/${{ github.event.repository.name }}.git@\/Api\/ci\/values-local-env.yaml?ref=${{ github.sha }}/" deploy/helmfile.yaml

kind create cluster --name inner-circle --config kind-local-config.yaml --kubeconfig ./.inner-circle-cluster-kubeconfig
# we need to properly expose KUBECONFIG as an absolute path, pwd prints current working directory path
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/prod-docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@ jobs:
uses: helmfile/helmfile-action@v1.9.0
with:
helmfile-version: 'v0.164.0'
helm-version: 'v3.14.4'
helm-version: 'v3.18.0'
helmfile-args: >
apply --namespace dev-inner-circle -f Api/ci/helmfile.yaml
apply --suppress-diff --namespace dev-inner-circle -f Api/ci/helmfile.yaml
--state-values-set image.tag=sha-${{ github.sha }}
--state-values-set ingress.enabled=true
--state-values-set ingress.hostname=${{ secrets.HOST }}
--state-values-set extraSecretEnvVars.ConnectionStrings__DefaultConnection=${{ secrets.POSTGRESQL_CONNECTION_STRING }}
--state-values-set extraSecretEnvVars.AuthenticationOptions__PublicSigningKey=${{ secrets.PUBLIC_SIGNING_KEY }}
--state-values-set extraSecretEnvVars.InnerCircleServiceUrls__EmployeesServiceUrl=${{ secrets.SALARY_SERVICE_URL }}
--state-values-set extraSecretEnvVars.InnerCircleServiceUrls__EmailSenderServiceUrl=${{ secrets.EMAIL_SENDER_SERVICE_URL }}
helmfile-auto-init: "false"
helmfile-auto-init: "false"
1 change: 0 additions & 1 deletion Api/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

# This stage is used when running from VS in fast mode (Default for Debug configuration)
FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base
USER $APP_UID
WORKDIR /app
EXPOSE 80

Expand Down
4 changes: 2 additions & 2 deletions Api/ci/helmfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ repositories:
url: https://charts.bitnami.com/bitnami

releases:
- name: inner-circle-documents-api
- name: documents-api
labels:
app: inner-circle-documents-api
app: documents-api
wait: true
chart: bitnami/aspnet-core
version: 4.4.7
Expand Down