forked from ChannelFinder/kubernetes
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
55 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters