forked from TUB-CNPE-TB/rust-envoy-proxy
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (30 loc) · 1.05 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Commit to Helm Charts Repository
env:
CHART_NAME: "hawk-envoy-plugin"
on:
push:
branches:
- main
jobs:
push-to-repo:
runs-on: ubuntu-latest
steps:
- name: Checkout source code
uses: actions/checkout@v2
- name: Commit and push to another repository
run: |
mkdir -p hawk-helm-charts/${{ env.CHART_NAME }}
cp -r README.md values.yaml Chart.yaml Chart.lock templates .helmignore "hawk-helm-charts/${{ env.CHART_NAME }}"
- name: Pushes to public repository
id: push_directory
uses: cpina/github-action-push-to-another-repository@ssh-deploy-key
env:
SSH_DEPLOY_KEY: ${{ secrets.SSH_DEPLOY_KEY }}
with:
source-directory: hawk-helm-charts/${{ env.CHART_NAME }}
destination-github-username: 'PrivacyEngineering'
destination-repository-name: 'hawk-helm-charts'
user-email: [email protected]
commit-message: pushed from $GITHUB_REF
target-directory: charts/${{ env.CHART_NAME }}
target-branch: master