Unverified Commit c186adda authored by Alexander Poddubny's avatar Alexander Poddubny Committed by GitHub

Adds buildspec for mirroring job (#1177)

# Description

Adding a buildspec for repo mirroring job:
- Mirrors a branch
- Uses personal github token
- Target repo and branch names are coming from env variables
- Pushing code with force
parent 225a8961
version: 0.2
phases:
install:
runtime-versions:
nodejs: 14
pre_build:
commands:
- git config --global user.name "Isaac LAB CI Bot"
- git config --global user.email "isaac-lab-ci-bot@nvidia.com"
build:
commands:
- git remote set-url origin https://github.com/${TARGET_REPO}.git
- git checkout $SOURCE_BRANCH
- git push --force https://$GITHUB_TOKEN@github.com/${TARGET_REPO}.git $SOURCE_BRANCH:$TARGET_BRANCH
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment