Skip to content

Publish Kubernetes Tentacle chart to Artifactory #4

Publish Kubernetes Tentacle chart to Artifactory

Publish Kubernetes Tentacle chart to Artifactory #4

name: Publish Chart
on:
pull_request:
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Helm
uses: azure/setup-helm@v3
with:
version: 'v3.13.2'
- name: Parse Chart config
uses: pietrobolcato/[email protected]
id: read_chart_yaml
with:
config: ${{ github.workspace }}/charts/kubernetes-tentacle/Chart.yaml
- name: Get branch names
id: branch_names
uses: OctopusDeploy/util-actions/[email protected]
- id: version
run: |
timestamp=`date +%Y%m%d%H%M%S`
echo "CHART_VERSION=${{ steps.read_chart_yaml.outputs.version }}-${{ steps.branch_names.outputs.branch_name }}-$timestamp" >> $GITHUB_ENV
#- name: Login to Artifactory
# run: helm registry login packages.octopushq.com -u '${{ }}' -p '${{}}'
- name: Package Chart
run: helm package './charts/kubernetes-tentacle' --version '$CHART_VERSION'
- uses: actions/upload-artifact@v3
name: Upload packaged chart
with:
name: 'kubernetes-tentacle-$CHART_VERSION.tgz'
path: '${{ github.workspace }}/kubernetes-tentacle-$CHART_VERSION.tgz'
#- name: Push Chart to Artifactory
# run: helm push 'kubernetes-tentacle' oci://packages.octopushq.com