From a1fb5578b7c361a6729c405e462208ef19d3298b Mon Sep 17 00:00:00 2001 From: Ellie Huxtable Date: Sun, 5 Nov 2023 16:14:12 +0000 Subject: [PATCH] Add release workflow Bump Add maintainer and bump chart Add maintainer and bump chart --- .github/workflows/release.yml | 32 ++++++++++++++++++++++++++ charts/atuin/Chart.yaml | 6 ++++- charts/atuin/templates/deployment.yaml | 16 ++++++++----- charts/atuin/values.yaml | 13 ++++++++++- 4 files changed, 59 insertions(+), 8 deletions(-) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..7e04d9c --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,32 @@ +name: Release Charts + +on: + push: + branches: + - main + +jobs: + release: + # depending on default permission settings for your org (contents being read-only or read-write for workloads), you will have to add permissions + # see: https://docs.github.com/en/actions/security-guides/automatic-token-authentication#modifying-the-permissions-for-the-github_token + permissions: + contents: write + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Configure Git + run: | + git config user.name "$GITHUB_ACTOR" + git config user.email "$GITHUB_ACTOR@users.noreply.github.com" + + - name: Install Helm + uses: azure/setup-helm@v3 + + - name: Run chart-releaser + uses: helm/chart-releaser-action@v1.6.0 + env: + CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" diff --git a/charts/atuin/Chart.yaml b/charts/atuin/Chart.yaml index cb2ebd1..f7eb2c2 100644 --- a/charts/atuin/Chart.yaml +++ b/charts/atuin/Chart.yaml @@ -1,6 +1,10 @@ apiVersion: v2 name: atuin description: A Helm chart for Atuin, the shell sync tool +maintainers: + - name: Ellie Huxtable + email: ellie@elliehuxtable.com + url: https://ellie.wtf # A chart can be either an 'application' or a 'library' chart. # @@ -15,7 +19,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.1.0 +version: 0.1.1 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/charts/atuin/templates/deployment.yaml b/charts/atuin/templates/deployment.yaml index e1e8ec8..6e918b4 100644 --- a/charts/atuin/templates/deployment.yaml +++ b/charts/atuin/templates/deployment.yaml @@ -36,25 +36,29 @@ spec: {{- toYaml .Values.securityContext | nindent 12 }} image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" imagePullPolicy: {{ .Values.image.pullPolicy }} + args: ["server", "start"] env: - name: ATUIN_HOST value: 0.0.0.0 - name: ATUIN_PORT - value: {{ .Values.service.port }} + value: "{{ .Values.service.port }}" - name: ATUIN_LOG value: {{ .Values.atuin.logLevel }} - name: ATUIN_OPEN_REGISTRATION - value: {{ .Values.atuin.openRegistration }} + value: "{{ .Values.atuin.openRegistration }}" - name: ATUIN_MAX_HISTORY_LENGTH - value: {{ .Values.atuin.maxHistoryLength }} + value: "{{ .Values.atuin.maxHistoryLength }}" - name: ATUIN_MAX_RECORD_SIZE - value: {{ .Values.atuin.maxRecordSize }} + value: "{{ .Values.atuin.maxRecordSize }}" - name: ATUIN_PAGE_SIZE - value: {{ .Values.atuin.pageSize }} + value: "{{ .Values.atuin.pageSize }}" - name: ATUIN_DB_URI - value: {{ .Values.atuin.pageSize }} + valueFrom: + secretKeyRef: + name: {{ .Values.postgresql.uri.secretName }} + key: {{ .Values.postgresql.uri.secretKey }} {{- if .Values.atuin.hooks.enabled }} - name: ATUIN_REGISTER_WEBHOOK_URL diff --git a/charts/atuin/values.yaml b/charts/atuin/values.yaml index 321c71e..aae7581 100644 --- a/charts/atuin/values.yaml +++ b/charts/atuin/values.yaml @@ -14,14 +14,25 @@ imagePullSecrets: [] nameOverride: "" fullnameOverride: "" +postgresql: + # Currently does nothing as we only support postgres. _coming soon_ + enabled: true + + uri: + secretName: atuin + secretKey: dbUri + atuin: # Setup Atuin webhook notifications # Currently only register webhooks are supported, and are sent in the slack format hooks: enabled: false + + # The username to set for hooks - useful for the slack format username: "Atuin" url: "" + logLevel: info # Enable registration @@ -31,7 +42,7 @@ atuin: maxHistoryLength: 8192 # Maximum length of a record. - maxRecordSize: 1073741824 + maxRecordSize: "1073741824" # Page size used for history sync pageSize: 1100