Skip to content

Commit

Permalink
chore: update workflow and docs
Browse files Browse the repository at this point in the history
  • Loading branch information
evegufy committed Mar 28, 2024
1 parent d65e118 commit 117868b
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 12 deletions.
30 changes: 26 additions & 4 deletions .github/workflows/chart-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,6 @@ jobs:
- name: Install Helm
uses: azure/setup-helm@b7246b12e77f7134dc2d460a3d5bad15bbe29390 # v4
with:
token: ${{ secrets.GITHUB_TOKEN }}

- name: Update helm dependencies for dim
run: |
Expand Down Expand Up @@ -87,12 +85,12 @@ jobs:
fi
- name: Login to GitHub Container Registry
if: github.event_name != 'pull_request'
uses: docker/login-action@e92390c5fb421da1463c202d546fed0ec5c39f20 # v3.1.0
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
if: steps.version-check.outputs.exists == 'false'

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@2b51285047da1547ffb1b2203d8be4c0af6b1f20 # v3.2.0
Expand Down Expand Up @@ -120,7 +118,7 @@ jobs:
type=semver,pattern={{major}}.{{minor}},value=${{ steps.chart-version.outputs.current }}
if: steps.version-check.outputs.exists == 'false'

- name: Build and push Docker image
- name: Build and push Docker image for Service
uses: docker/build-push-action@4a13e500e55cf31b7a5d59a38ab2040ab0f42f56 # v5.1.0
with:
context: .
Expand All @@ -130,4 +128,28 @@ jobs:
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
if: steps.version-check.outputs.exists == 'false'

- name: Build and push Docker image for Migrations
uses: docker/build-push-action@4a13e500e55cf31b7a5d59a38ab2040ab0f42f56 # v5.1.0
with:
context: .
file: docker/Dockerfile-dim-migrations
platforms: linux/amd64, linux/arm64
pull: true
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
if: steps.version-check.outputs.exists == 'false'

- name: Build and push Docker image for Processes Worker
uses: docker/build-push-action@4a13e500e55cf31b7a5d59a38ab2040ab0f42f56 # v5.1.0
with:
context: .
file: docker/Dockerfile-dim-processes-worker
platforms: linux/amd64, linux/arm64
pull: true
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
if: steps.version-check.outputs.exists == 'false'
25 changes: 17 additions & 8 deletions charts/dim/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ To use the helm chart as a dependency:
dependencies:
- name: dim
repository: https://dim-repo.github.io
version: 1.0.0-rc.1
version: 0.0.4
```
## Requirements
Expand All @@ -43,13 +43,14 @@ dependencies:
| dim.image.name | string | `"ghcr.io/dim-repo/dim-service"` | |
| dim.image.tag | string | `""` | |
| dim.imagePullPolicy | string | `"IfNotPresent"` | |
| dim.resources | object | `{"limits":{"cpu":"45m","memory":"400M"},"requests":{"cpu":"15m","memory":"400M"}}` | We recommend to review the default resource limits as this should a conscious choice. |
| dim.resources | object | `{"limits":{"cpu":"45m","memory":"200M"},"requests":{"cpu":"15m","memory":"200M"}}` | We recommend to review the default resource limits as this should a conscious choice. |
| dim.healthChecks.startup.path | string | `"/health/startup"` | |
| dim.healthChecks.startup.tags[0].name | string | `"HEALTHCHECKS__0__TAGS__1"` | |
| dim.healthChecks.startup.tags[0].value | string | `"dimdb"` | |
| dim.healthChecks.liveness.path | string | `"/healthz"` | |
| dim.healthChecks.readyness.path | string | `"/ready"` | |
| dim.swaggerEnabled | bool | `false` | |
| dim.rootDirectoryId | string | `"00000000-0000-0000-0000-000000000000"` | |
| migrations.name | string | `"migrations"` | |
| migrations.image.name | string | `"ghcr.io/dim-repo/dim-migrations"` | |
| migrations.image.tag | string | `""` | |
Expand All @@ -63,15 +64,24 @@ dependencies:
| processesworker.image.tag | string | `""` | |
| processesworker.imagePullPolicy | string | `"IfNotPresent"` | |
| processesworker.resources | object | `{"limits":{"cpu":"45m","memory":"105M"},"requests":{"cpu":"15m","memory":"105M"}}` | We recommend to review the default resource limits as this should a conscious choice. |
| processesworker.iam.scope | string | `"openid"` | |
| processesworker.iam.grantType | string | `"client_credentials"` | |
| processesworker.iam.clientId | string | `""` | Provide client-id for IAM. |
| processesworker.iam.clientSecret | string | `""` | Client-secret for IAM client-id. Secret-key 'iam-client-secret'. |
| processesworker.dim.adminMail | string | `"[email protected]"` | |
| processesworker.dim.clientIdCisCentral | string | `""` | |
| processesworker.dim.clientSecretCisCentral | string | `""` | |
| processesworker.dim.authUrl | string | `""` | |
| processesworker.subaccount.baseUrl | string | `""` | Url to the subaccount service api |
| processesworker.entitlement.baseUrl | string | `""` | Url to the entitlement service api |
| processesworker.cf.clientId | string | `""` | |
| processesworker.cf.clientSecret | string | `""` | |
| processesworker.cf.tokenAddress | string | `""` | |
| processesworker.cf.baseUrl | string | `""` | Url to the cf service api |
| processesworker.cf.grantType | string | `"client_credentials"` | |
| processesworker.callback.scope | string | `"openid"` | |
| processesworker.callback.grantType | string | `"client_credentials"` | |
| processesworker.callback.clientId | string | `""` | Provide client-id for callback. |
| processesworker.callback.clientSecret | string | `""` | Client-secret for callback client-id. Secret-key 'callback-client-secret'. |
| existingSecret | string | `""` | Secret containing the client-secrets for the connection to portal and wallet as well as encryptionKeys for dim.credential and processesworker.wallet |
| processesworker.callback.tokenAddress | string | `""` | |
| processesworker.callback.baseAddress | string | `""` | Url to the cf service api |
| existingSecret | string | `""` | Secret containing "client-secret-cis-central", "client-secret-cf" and "client-secret-callback" |
| dotnetEnvironment | string | `"Production"` | |
| dbConnection.schema | string | `"dim"` | |
| dbConnection.sslMode | string | `"Disable"` | |
Expand All @@ -96,7 +106,6 @@ dependencies:
| externalDatabase.database | string | `"dim"` | Database name. |
| externalDatabase.password | string | `""` | Password for the non-root username (default 'dim'). Secret-key 'password'. |
| externalDatabase.existingSecret | string | `"dim-external-db"` | Secret containing the password non-root username, (default 'dim'). |
| externalDatabase.existingSecretPasswordKey | string | `"password"` | Name of an existing secret key containing the database credentials. |
| ingress.enabled | bool | `false` | DIM ingress parameters, enable ingress record generation for dim. |
| ingress.tls[0] | object | `{"hosts":[""],"secretName":""}` | Provide tls secret. |
| ingress.tls[0].hosts | list | `[""]` | Provide host for tls secret. |
Expand Down

0 comments on commit 117868b

Please sign in to comment.