Skip to content

Commit

Permalink
Fix version number
Browse files Browse the repository at this point in the history
  • Loading branch information
APErebus authored Dec 7, 2023
1 parent 6633dbc commit 82f29c0
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/kubernetes-tentacle-publish-chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,23 @@ jobs:
- name: Get branch names
id: branch_names
uses: OctopusDeploy/util-actions/[email protected]

- id: version
run: |
DATE=$(date '+%Y%m%d%H%M%S')
echo "CHART_VERSION=${{ steps.read_chart_yaml.outputs.version }}-${{ steps.branch_names.outputs.branch_name }}-$DATE" >> $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 '${{ steps.read_chart_yaml.outputs["version"] }}-${{ steps.branch_names.outputs.branch_name }}'
run: helm package './charts/kubernetes-tentacle' --version '$CHART_VERSION'

- uses: actions/upload-artifact@v3
name: Upload packaged chart
with:
name: 'kubernetes-tentacle-${{ steps.read_chart_yaml.outputs["version"] }}-${{ steps.branch_names.outputs.branch_name }}.tgz'
path: '${{ github.workspace }}/kubernetes-tentacle-${{ steps.read_chart_yaml.outputs["version"] }}-${{ steps.branch_names.outputs.branch_name }}.tgz'
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

0 comments on commit 82f29c0

Please sign in to comment.