add helm ci
This commit is contained in:
parent
a8e7b24656
commit
27af90322a
@ -16,7 +16,7 @@ env:
|
||||
DOCKER_USER: rmcguire
|
||||
DOCKER_REPO: rmcguire/ambient-local-exporter
|
||||
DOCKER_IMG: ${{ env.DOCKER_REGISTRY }}/${{ env.DOCKER_REPO }}
|
||||
|
||||
CHART_DIR: helm/ambient-local-exporter
|
||||
|
||||
jobs:
|
||||
release:
|
||||
@ -86,3 +86,24 @@ jobs:
|
||||
build-args: |
|
||||
VER_PKG=${{ env.VER_PKG }}
|
||||
VERSION=${{ github.ref_name }}
|
||||
|
||||
helm-release:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout Code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Install Helm
|
||||
run: |
|
||||
curl -fsSL https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash
|
||||
|
||||
- name: Package Chart
|
||||
run: |
|
||||
helm package --app-version ${VERSION} ${CHART_DIR}
|
||||
|
||||
- name: Publish Chart
|
||||
run: |
|
||||
curl -X POST \
|
||||
-H "Authorization: token ${API_TOKEN}" \
|
||||
--upload-file ./${PACKAGE_NAME}-*.tgz \
|
||||
https://gitea.libretechconsulting.com/api/packages/${GITHUB_REPOSITORY_OWNER}/helm/api/charts
|
||||
|
Loading…
x
Reference in New Issue
Block a user