Skip to content

Instantly share code, notes, and snippets.

@sdake
Created December 12, 2019 08:50
Show Gist options
  • Save sdake/2e45b74412bb66e1cff7839f0d80f8d0 to your computer and use it in GitHub Desktop.
Save sdake/2e45b74412bb66e1cff7839f0d80f8d0 to your computer and use it in GitHub Desktop.
version="master-2019-11-26T07-29-27"
cd $HOME/go/src/istio.io
pushd $HOME/go/src/istio.io
export BUILD_WITH_CONTAINER=1
function update-commonfiles() {
repo=${1}
git clone https://github.com/sdake/${repo}
pushd ${repo}
git remote add upstream https://github.com/istio/${repo}
git checkout master
git fetch upstream
git rebase origin upstream/master
git checkout -b commonfiles-${version}
make update-common
make gen
git add licenses
git commit . -m commonfiles-${version}
git push -f origin commonfiles-${version}
curl -v -u $GIT_USER:$GIT_PASSWORD -H "Content-Type:application/json" -X POST https://api.github.com/repos/istio/${repo}/pulls -d '{"title":"common-files update master-2019-11-26T07-29-27", "body": "Update to common-files with image master-2019-11-26T07-29-27", "head": "sdake:commonfiles-master-2019-11-26T07-29-27", "base": "master"}'
popd
}
#for repo in tools pkg api cni operator installer client-go test-infra cri release-builder bots community; do
for repo in istio; do
update-commonfiles $repo
done
popd
@sdake
Copy link
Author

sdake commented Dec 12, 2019

The following dependencies shall be removed:

  • This PR depends on a clean $ISTIO.
  • This PR depends on a forked copy of every repo in the https://github.com/sdake namespace.
  • This PR depends on credentials exported via $GIT_USER and GIT_PASSWORD

The following enhancements shall be made:

  • version shall be set from the $IMG tag in common-files
  • All repositories under management shall be syncronized
  • A PR shall be automatically generated to https://github.com/istio/test-infra to ensure the docker image matches that in CI. THIS IS A MANDATORY REQUIREMENT

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment