feat(publish-workflow): fixes
This commit is contained in:
2 files changed
+6
-25
No files matched your search
@@ -22,6 +22,10 @@ on:
|
||||
required: true
|
||||
type: string
|
||||
description: "name of the helm chart"
|
||||
outputs:
|
||||
chart-version:
|
||||
description: "the version of the published helm chart"
|
||||
value: ${{ jobs.publish-helm-chart.outputs.chart-version }}
|
||||
secrets:
|
||||
OP_CONNECT_TOKEN:
|
||||
required: true
|
||||
|
||||
@@ -11,34 +11,11 @@ jobs:
|
||||
with:
|
||||
chart-name: 'zipline'
|
||||
secrets: inherit
|
||||
get-chart-version:
|
||||
name: Get Zipline Chart Version
|
||||
needs: publish-zipline
|
||||
outputs:
|
||||
chart-version: ${{ steps.get-chart-version.outputs.CHART_VERSION }}
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: "Checkout"
|
||||
uses: actions/checkout@v2
|
||||
- name: "Get Helm Chart Version"
|
||||
id: get-chart-version
|
||||
run: |-
|
||||
CHART_VERSION=$(grep '^version:' ${{ inputs.chart-name}}/Chart.yaml | awk '{print $2}')
|
||||
echo $CHART_VERSION
|
||||
echo "CHART_VERSION=test-version" >> $GITHUB_OUTPUT
|
||||
debug-chart-version:
|
||||
name: Debug Chart Version
|
||||
runs-on: ubuntu-latest
|
||||
needs: get-chart-version
|
||||
steps:
|
||||
- name: "Debug Chart Version"
|
||||
run: |-
|
||||
echo ${{ needs.get-chart-version.outputs.chart-version }}
|
||||
deploy-zipline:
|
||||
name: Deploy Zipline Helm Chart
|
||||
needs: get-chart-version
|
||||
needs: publish-zipline
|
||||
uses: ./.github/workflows/deploy-helm-chart.yml
|
||||
with:
|
||||
deployment-identifier: 'zipline'
|
||||
chart-version: ${{ needs.get-chart-version.outputs.chart-version }}
|
||||
chart-version: ${{ needs.publish-zipline.outputs.chart-version }}
|
||||
secrets: inherit
|
||||
Reference in new issue
Block a user