Update action.yml
This commit is contained in:
parent
ed9bf1f34a
commit
9777a6e6cf
@ -27,21 +27,16 @@ runs:
|
|||||||
- name: Package helm
|
- name: Package helm
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
helm package ${{ inputs.chart_directory }} --app-version ${{ inputs.helm_version }} --version ${{ inputs.helm_version }} --dependency-update --destination ${{ inputs.chart_directory }}/result.tgz
|
helm package ${{ inputs.chart_directory }} --app-version ${{ inputs.helm_version }} --version ${{ inputs.helm_version }} --dependency-update --destination ${{ inputs.chart_directory }}/result
|
||||||
|
- name: Install yq
|
||||||
|
uses: mikefarah/yq@master
|
||||||
- name: Publishing helm
|
- name: Publishing helm
|
||||||
shell: bash
|
shell: bash
|
||||||
env:
|
env:
|
||||||
HELM_FILE: ${{ inputs.chart_directory }}/result.tgz
|
HELM_RESULT_FILE: ${{ inputs.chart_directory }}/result
|
||||||
run: |
|
run: |
|
||||||
if [ ! -f ./${HELM_FILE} ]; then
|
|
||||||
echo "File ${HELM_FILE} not found!"
|
|
||||||
else
|
|
||||||
echo "File ${HELM_FILE} exist!"
|
|
||||||
fi
|
|
||||||
echo 'Files in ${{ inputs.chart_directory }}:'
|
|
||||||
ls ${{ inputs.chart_directory }} -l
|
|
||||||
echo '!!!!!'
|
echo '!!!!!'
|
||||||
ls ${HELM_FILE}
|
yq .name ${HELM_RESULT_FILE}
|
||||||
echo '22222'
|
echo '!!!!!!'
|
||||||
echo "File: @${HELM_FILE} to ${{ vars.HELM_REPOSITORY }}/api/charts?force"
|
echo "File: @${HELM_FILE} to ${{ vars.HELM_REPOSITORY }}/api/charts?force"
|
||||||
curl "${{ vars.HELM_REPOSITORY }}/api/charts?force" -d "@${HELM_FILE}" -v
|
curl "${{ vars.HELM_REPOSITORY }}/api/charts?force" -d "@${HELM_FILE}" -v
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user