Skip to content

Commit

Permalink
login to helm in action
Browse files Browse the repository at this point in the history
  • Loading branch information
maxmwang committed Nov 18, 2024
1 parent e75f350 commit a7bd1f9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ jobs:
- name: Build and Push Helm Chart
run: |
cd ./infra
helm registry login registry-1.docker.io -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }}
helm dependency update ${{ matrix.chart }}
helm package ${{ matrix.chart }} --version ${{ inputs.chart_ver }}
helm push bt-${{ matrix.chart }}-${{ inputs.chart_ver }}.tgz oci://registry-1.docker.io/${{ secrets.DOCKER_USERNAME }}
5 changes: 4 additions & 1 deletion .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,7 @@ jobs:
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USERNAME }}
key: ${{ secrets.SSH_KEY }}
script: ${{ inputs.script }}
script: |
set -e # Exit immediately if a command fails
${{ inputs.script }}

0 comments on commit a7bd1f9

Please sign in to comment.