Skip to content

Commit

Permalink
add chart and the ci
Browse files Browse the repository at this point in the history
  • Loading branch information
stan-dot committed Nov 27, 2024
1 parent d78413a commit 3fab097
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 12 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/helm_deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Build and publish helm charts

on:
push:
pull_request:

env:
HELM_VERSION_TO_INSTALL: 3.14.3

jobs:
build-and-push-helm-charts:
name: publish helm charts to ghcr.io
runs-on: ubuntu-latest
environment: prod
steps:
- name: Checkout
uses: actions/checkout@v2

- name: install helm
uses: Azure/setup-helm@v3
with:
version: ${{ env.HELM_VERSION_TO_INSTALL }}

- name: push the helm chart
run: |
echo ${{ secrets.GITHUB_TOKEN }} | helm registry login ghcr.io/${{ github.repository_owner }} --username ${{ github.repository_owner }} --password-stdin
REGISTRY=oci://ghcr.io/epics-containers
set -x
# helm tags must be SemVar. Use 0.0.0-b0 for testing the latest non-tagged build
if [ "${GITHUB_REF_TYPE}" == "tag" ] ; then
TAG=${GITHUB_REF_NAME}
else
TAG="0.0.0-b0"
fi
for chart in Charts/*; do
(
cd $(realpath $chart)
NAME=$(sed -n '/^name: */s///p' Chart.yaml)
helm package -u --app-version ${TAG} --version ${TAG} .
PACKAGE=${NAME}-${TAG}.tgz
helm push "$PACKAGE" $REGISTRY
)
done
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
# kubernetes

configuration for a kubernetes based deployment

## helm from

<https://github.com/epics-containers/ec-helm-charts/blob/main/.github/workflows/helm_deploy.yml>
2 changes: 1 addition & 1 deletion helm/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ version: 0.1.0
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "1.16.0"
appVersion: "4.7.2"
12 changes: 1 addition & 11 deletions helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -92,16 +92,6 @@ tolerations: []

affinity: {}

image:
repository: gcr.io/diamond-pubreg/channelfinder/channelfinder
tag: "0.1.1"
pullPolicy: IfNotPresent

elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch
tag: "8.15.2"
pullPolicy: IfNotPresent

service:
type: ClusterIP
port: 8080
Expand All @@ -111,5 +101,5 @@ elasticsearchService:

persistence:
enabled: true
size: 10Gi
size: 5Gi
storageClass: ""

0 comments on commit 3fab097

Please sign in to comment.