Skip to content

Commit

Permalink
Update .push-helm-chart.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
barrfalk committed Dec 19, 2023
1 parent 5c4e41d commit e6e47cf
Showing 1 changed file with 45 additions and 3 deletions.
48 changes: 45 additions & 3 deletions .github/workflows/.push-helm-chart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,52 @@ jobs:
# If here skip deployment
echo "No triggers have fired, deployment skipped"
- name: Setup Git
- name: Setup SSH for Target Repository
run: |
mkdir -p ~/.ssh
echo "${{ secrets.MANIFEST_REPO_DEPLOY_KEY }}" > ~/.ssh/id_rsa
echo "${{ secrets.MANIFEST_REPO_DEPLOY_KEY_PUB }}" > ~/.ssh/id_rsa.pub
chmod 600 ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa.pub
ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts
- name: Clone Target Repository
run: |
git clone git@github.com:${{ vars.GITOPS_REPO}}.git target-repo
cd target-repo
git checkout -b update-helm-chart
- name: Copy Helm Chart
run: |
cp -r ./charts/* ./helm-chart/
cd target-repo
- name: Commit and Push Changes
run: |
git add .
git commit -m "Update Helm chart"
git push --set-upstream origin update-helm-chart
- name: Create Pull Request
uses: repo-sync/pull-request@v2
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
pr_title: "Update Helm Chart"
pr_body: "Automated update of Helm chart"
destination_branch: "main"
source_branch: "update-helm-chart"








- name: Setup Git
run: |
git config --global user.name 'Your Name'
git config --global user.email 'your-email@example.com'
git config --global user.name 'Barrett Falk'
git config --global user.email 'bfalk_t@salussystems.com'
- name: Clone Target Repository
env:
Expand Down

0 comments on commit e6e47cf

Please sign in to comment.