Skip to content
Open
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
16 changes: 5 additions & 11 deletions .github/workflows/lint-test.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
name: Lint and Test Charts

on: pull_request

jobs:
lint-test:
runs-on: ubuntu-latest
Expand All @@ -10,41 +8,37 @@ jobs:
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Envsubst
uses: danielr1996/[email protected]
env:
SLACK_TOKEN: ${{ secrets.SLACK_TOKEN }}
with:
input: charts/flagsmith/ci/e2e-test-values.yaml
output: charts/flagsmith/ci/e2e-test-values.yaml

- name: Set up Helm
uses: azure/setup-helm@v4
with:
version: v3.17.0

- uses: actions/setup-python@v5
with:
python-version: 3.11

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

- name: Run chart-testing (list-changed)
id: list-changed
run: |
changed=$(ct list-changed --config ct.yaml)
if [[ -n "$changed" ]]; then
echo "::set-output name=changed::true"
fi

- name: Run chart-testing (lint)
run: ct lint --config ct.yaml --lint-conf lintconf.yaml --check-version-increment=false

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

- name: Run chart-testing (install)
run: ct install --config ct.yaml
run: ct install --namespace flagsmith --config ct.yaml --debug
- name: Debug Output
run: |
kubectl --namespace flagsmith describe pods
if: failure()
32 changes: 32 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Testing docker.flagsmith.com access

on:
pull_request:

jobs:
foo:
runs-on: ubuntu-latest
steps:
- run: echo "Hello world"

test:
runs-on: ubuntu-latest

services:
flagsmith:
image: docker.flagsmith.com/flagsmith/flagsmith
ports:
- 8000:8000
env:
DATABASE_URL: "postgresql://postgres:password@postgres:5432/postgres"
postgres:
image: postgres:14
ports:
- 5432:5432
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
POSTGRES_DB: postgres

steps:
- run: curl http://localhost:8000/version
4 changes: 4 additions & 0 deletions charts/flagsmith/ci/e2e-test-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,14 @@ _destructiveTests:
enabled: true

frontend:
image:
repository: flagsmith/flagsmith-frontend
extraEnv:
SLACK_TOKEN: "${SLACK_TOKEN}"

api:
image:
repository: flagsmith/flagsmith-api
analytics:
enabled: true
extraEnv:
Expand Down
4 changes: 2 additions & 2 deletions charts/flagsmith/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ serviceMonitor:

api:
image:
repository: flagsmith.docker.scarf.sh/flagsmith/flagsmith-api
repository: docker.flagsmith.com/flagsmith/flagsmith-api
tag: "" # defaults to .Chart.AppVersion
imagePullPolicy: ""
imagePullSecrets: []
Expand Down Expand Up @@ -133,7 +133,7 @@ frontend:
# pointing at the single Docker image that serves both.
enabled: true
image:
repository: flagsmith.docker.scarf.sh/flagsmith/flagsmith-frontend
repository: docker.flagsmith.com/flagsmith/flagsmith-frontend
tag: "" # defaults to .Chart.AppVersion
imagePullPolicy: ""
imagePullSecrets: []
Expand Down
2 changes: 1 addition & 1 deletion ct.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ chart-repos:
- kiwigrid=https://kiwigrid.github.io
target-branch: main
validate-maintainers: false
helm-extra-args: '--timeout 30m'
helm-extra-args: '--timeout 1m'
Loading