Publish Kubernetes Tentacle chart to Artifactory #6
Workflow file for this run
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
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: | | |
echo "CHART_VERSION=${{ steps.read_chart_yaml.outputs.version }}-${{ steps.branch_names.outputs.branch_name }}-$(date +'%Y%m%d%H%M%S')" >> $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 '${{ env.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 |