Helm package #4
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: Helm package | |
on: | |
workflow_dispatch: | |
jobs: | |
release: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install Helm | |
uses: azure/setup-helm@v3 | |
- name: Build chart | |
run: | | |
cd charts/horizon-issuer | |
helm dependencies build | |
helm package . | |
- name: Upload to Sonatype repo | |
env: | |
NEXUS_USERNAME: ${{ secrets.REGISTRY_USERNAME }} | |
NEXUS_PASSWORD: ${{ secrets.REGISTRY_PASSWORD }} | |
run: | | |
PACKAGE="$(find charts/horizon-issuer -type f -name 'horizon-issuer-*.tgz' -maxdepth 1 | head -n 1)" | |
curl -F file=@$PACKAGE --user "$NEXUS_USERNAME:$NEXUS_PASSWORD" --fail https://repo.evertrust.io/service/rest/v1/components?repository=charts |