Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test pixelfed-glitch image on PRs #57

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft
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
42 changes: 42 additions & 0 deletions .github/workflows/ci-helm-lint-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,3 +84,45 @@ jobs:
ct install \
--target-branch ${{ github.event.repository.default_branch }} \
--helm-extra-set-args "--values ./charts/pixelfed/test-values/postgresql-plain.yaml"

glitch_test_plain:
name: Test chart plain + with pixelfed-glitch
runs-on: ubuntu-latest
needs: lint
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: "0"
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}

- name: Install Helm
uses: azure/setup-helm@v4

- name: Add dependency chart repos
run: |
helm repo add bitnami https://charts.bitnami.com/bitnami

- name: Set glitch up chart-testing
uses: helm/[email protected]

- name: Run chart-testing (list-changed)
id: list-changed
run: |
changed=$(ct list-changed --target-branch ${{ github.event.repository.default_branch }})
if [[ -n "$changed" ]]; then
echo "changed=true" >> "$GITHUB_OUTPUT"
fi

- name: Create kind cluster
uses: helm/[email protected]
if: steps.list-changed.outputs.changed == 'true'

- name: Run glitch chart-testing (install)
id: install
if: steps.list-changed.outputs.changed == 'true'
run: |
ct install \
--target-branch ${{ github.event.repository.default_branch }} \
--helm-extra-set-args "--values ./charts/pixelfed/test-values/glitch-postgresql-plain.yaml"
2 changes: 1 addition & 1 deletion charts/pixelfed/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,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.19.0
version: 0.19.1

# This is the version number of the application being deployed.
# renovate:image=ghcr.io/mattlqx/docker-pixelfed
Expand Down
2 changes: 1 addition & 1 deletion charts/pixelfed/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Pixelfed Helm Chart

![Version: 0.19.0](https://img.shields.io/badge/Version-0.19.0-informational?style=flat-square) ![AppVersion: v0.12.4-nginx](https://img.shields.io/badge/AppVersion-v0.12.4--nginx-informational?style=flat-square)
![Version: 0.19.1](https://img.shields.io/badge/Version-0.19.1-informational?style=flat-square) ![AppVersion: v0.12.4-nginx](https://img.shields.io/badge/AppVersion-v0.12.4--nginx-informational?style=flat-square)

A Helm chart for deploying Pixelfed on Kubernetes

Expand Down
62 changes: 62 additions & 0 deletions charts/pixelfed/test-values/glitch-postgresql-plain.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
# This file is strictly for testing a base functionality of this chart
# it uses postgresql and valkey and provides credentials for them as well as mail

image:
registry: docker.io
repository: jessebot/pixelfed-glitch
tag: v0.12.4-glitch.1.8.0-nginx

pixelfed:
app:
domain: "example.com"
mail:
username: test
password: testing1234567

# VALKEY
valkey:
auth:
enabled: true
password: testing1234567

primary:
replicaCount: 2
disableCommands:
- FLUSHALL
persistence:
enabled: false

replica:
replicaCount: 0
persistence:
enabled: false

# POSTGRES
postgresql:
auth:
password: testing1234567
postgresPassword: testing1234567
username: pixelfed
database: pixelfed

# LIVENESS PROBE
livenessProbe:
initialDelaySeconds: 10
periodSeconds: 10
timeoutSeconds: 5
failureThreshold: 3
successThreshold: 1
httpGet:
path: /api/service/health-check
port: http

# READINESS PROBE
readinessProbe:
initialDelaySeconds: 10
periodSeconds: 10
timeoutSeconds: 5
failureThreshold: 3
successThreshold: 1
httpGet:
path: /api/service/health-check
port: http
Loading