Update action.yml
This commit is contained in:
parent
ed9bf1f34a
commit
9777a6e6cf
@ -27,21 +27,16 @@ runs:
|
||||
- name: Package helm
|
||||
shell: bash
|
||||
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
|
||||
shell: bash
|
||||
env:
|
||||
HELM_FILE: ${{ inputs.chart_directory }}/result.tgz
|
||||
HELM_RESULT_FILE: ${{ inputs.chart_directory }}/result
|
||||
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 '!!!!!'
|
||||
ls ${HELM_FILE}
|
||||
echo '22222'
|
||||
yq .name ${HELM_RESULT_FILE}
|
||||
echo '!!!!!!'
|
||||
echo "File: @${HELM_FILE} to ${{ vars.HELM_REPOSITORY }}/api/charts?force"
|
||||
curl "${{ vars.HELM_REPOSITORY }}/api/charts?force" -d "@${HELM_FILE}" -v
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user