Skip to content

Commit

Permalink
Add release workflow
Browse files Browse the repository at this point in the history
Bump

Add maintainer and bump chart

Add maintainer and bump chart
  • Loading branch information
ellie committed Dec 27, 2023
1 parent e1ec6f1 commit a1fb557
Show file tree
Hide file tree
Showing 4 changed files with 59 additions and 8 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -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 "[email protected]"
- name: Install Helm
uses: azure/setup-helm@v3

- name: Run chart-releaser
uses: helm/[email protected]
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
6 changes: 5 additions & 1 deletion charts/atuin/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
apiVersion: v2
name: atuin
description: A Helm chart for Atuin, the shell sync tool
maintainers:
- name: Ellie Huxtable
email: [email protected]
url: https://ellie.wtf

# A chart can be either an 'application' or a 'library' chart.
#
Expand All @@ -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
Expand Down
16 changes: 10 additions & 6 deletions charts/atuin/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
13 changes: 12 additions & 1 deletion charts/atuin/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -31,7 +42,7 @@ atuin:
maxHistoryLength: 8192

# Maximum length of a record.
maxRecordSize: 1073741824
maxRecordSize: "1073741824"

# Page size used for history sync
pageSize: 1100
Expand Down

0 comments on commit a1fb557

Please sign in to comment.