Skip to content

Commit

Permalink
Use ssh key for pushing to remote git repo
Browse files Browse the repository at this point in the history
Signed-off-by: Liora Milbaum <[email protected]>
  • Loading branch information
lmilbaum committed Apr 7, 2024
1 parent 90617c5 commit 60d63ca
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/mirror-repository.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
with:
fetch-depth: 0

- name: Push to mirror Repository
run: |
git remote add mirror https://${{ secrets.TOKEN }}@github.com/containers-mirror/ai-lab-recipes.git
git push mirror main
- uses: pixta-dev/[email protected]
with:
target_repo_url:
[email protected]:containers-mirror/ai-lab-recipes.git
ssh_private_key:
${{ secrets.SSH_PRIVATE_KEY }}

- name: Publish Job Results to Slack
id: slack
Expand Down

0 comments on commit 60d63ca

Please sign in to comment.