All checks were successful
Lint and Publish Helm Chart / publish-helm (push) Successful in 3s
29 lines
837 B
YAML
29 lines
837 B
YAML
name: Lint and Publish Helm Chart
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
|
|
jobs:
|
|
publish-helm:
|
|
runs-on: docker
|
|
container:
|
|
image: alpine/helm:3.14.0
|
|
steps:
|
|
- name: Clone repo
|
|
run: |
|
|
echo "Cloning repository $GITHUB_REPOSITORY..."
|
|
git clone "https://${{ secrets.REPO_USER }}:${{ secrets.REPO_TOKEN }}@${GITHUB_SERVER_URL#https://}/${GITHUB_REPOSITORY}.git" $GITHUB_WORKSPACE
|
|
cd "$GITHUB_WORKSPACE"
|
|
|
|
- name: Lint and package Helm chart
|
|
run: |
|
|
helm lint .
|
|
helm package . -d charts
|
|
|
|
- name: Publish Helm chart
|
|
run: |
|
|
curl --user ${{ secrets.REPO_USER }}:${{ secrets.REPO_TOKEN }} -X POST --upload-file charts/duino-miner-0.1.1.tgz $GITHUB_SERVER_URL/api/packages/${{ secrets.REPO_USER }}/helm/api/charts
|