File tree Expand file tree Collapse file tree 3 files changed +38
-10
lines changed
charts/exivity/templates/edify Expand file tree Collapse file tree 3 files changed +38
-10
lines changed Original file line number Diff line number Diff line change 11name : okteto-registry
2+ permissions :
3+ contents : read
24on :
3- workflow_dispatch :
5+ workflow_dispatch :
6+ inputs :
7+ branch :
8+ description : ' Branch name to checkout'
9+ required : false
10+ default : ' main'
411 push :
5- branches :
6- - main
12+ branches : [ main ]
13+ pull_request :
714
815jobs :
916 upload-chart :
1320 steps :
1421 - name : Checkout Code
1522 uses : actions/checkout@v4
23+ with :
24+ ref : ${{ github.event.inputs.branch || github.head_ref || github.ref_name || github.ref }}
1625
1726 - name : Context
1827 uses : exivity/okteto-context-action@latest
Original file line number Diff line number Diff line change @@ -18,13 +18,21 @@ spec:
1818 {{- include "exivity.labels" $ | indent 8 }}
1919 annotations :
2020 checksum/{{- include "exivity.fullname" $ -}}-config-edify : {{ include (print $.Template.BasePath "/edify/configmap.yaml") . | sha256sum }}
21+ checksum/{{- include "exivity.fullname" $ -}}-licence-pub : {{ include (print $.Template.BasePath "/proximity/api.configmap.yaml") . | sha256sum }}
22+ checksum/{{- include "exivity.fullname" $ -}}-licence-key : {{ include (print $.Template.BasePath "/proximity/api.secret.yaml") . | sha256sum }}
2123 spec :
2224 securityContext :
2325 {{- include "exivity.securityContext" (dict "root" . "component" "edify") | indent 8 }}
2426 volumes :
2527 - name : config-file
26- configMap :
27- name : {{ include "exivity.fullname" $ -}}-config-edify
28+ projected :
29+ sources :
30+ - configMap :
31+ name : {{ include "exivity.fullname" $ -}}-config-edify
32+ - configMap :
33+ name : {{ include "exivity.fullname" $ -}}-licence-pub
34+ - secret :
35+ name : {{ include "exivity.fullname" $ -}}-licence-key
2836 - name : config
2937 persistentVolumeClaim :
3038 claimName : {{ include "exivity.fullname" $ -}}-etl-config
Original file line number Diff line number Diff line change 11deploy :
22 commands :
3- - name : Install dependencies
3+ - name : Set CHART_VERSION
4+ command : |
5+ BASE_VERSION=0.0.0
6+ BRANCH_NAME=${OKTETO_GIT_BRANCH:-${GITHUB_REF_NAME:-unknown}}
7+ SAFE_BRANCH=$(echo "$BRANCH_NAME" | tr '/_' '--')
8+ CHART_VERSION="$BASE_VERSION-$SAFE_BRANCH"
9+ export CHART_VERSION
10+ echo "Using CHART_VERSION: $CHART_VERSION"
11+ echo "CHART_VERSION=$CHART_VERSION" > /tmp/chart_version.env
12+ - name : Install dependencies for exivity
413 command : helm dependency update charts/exivity
514 - name : Login registry
615 command : |
716 helm registry login ${OKTETO_REGISTRY_URL} -u ${OKTETO_USERNAME} -p ${OKTETO_TOKEN}
8- - name : Package chart
17+ - name : Package exivity chart
918 command : |
10- helm package ./charts/exivity --version 0.0.1
11- - name : Push chart to registry
19+ . /tmp/chart_version.env
20+ helm package ./charts/exivity --version $CHART_VERSION
21+ - name : Push exivity chart to registry
1222 command : |
13- helm push ./exivity-0.0.1.tgz oci://${OKTETO_REGISTRY_URL}/okteto
23+ . /tmp/chart_version.env
24+ helm push ./exivity-$CHART_VERSION.tgz oci://${OKTETO_REGISTRY_URL}/okteto
You can’t perform that action at this time.
0 commit comments