-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathgit_push.sh
More file actions
executable file
·30 lines (27 loc) · 841 Bytes
/
Copy pathgit_push.sh
File metadata and controls
executable file
·30 lines (27 loc) · 841 Bytes
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
#!/bin/bash
dir=`pwd`
setup_git() {
git config user.email "travis@travis-ci.org"
git config user.name "TravisCI"
}
upload_files() {
# git checkout -b gh-pages
# git add ./ -A
pwd
git status
git add ./
git commit -m "Travis build: $TRAVIS_BUILD_NUMBER"
REPO="https://${GH_TOKEN}@github.com/blademainer/google_containers_mirror_completed_list.git"
# REMOTE_REF="tasks"
# [ -n "`git remote | grep $REMOTE_REF`" ] && git remote remove ${REMOTE_REF}
# git remote add ${REMOTE_REF} https://${GH_TOKEN}@github.com/blademainer/google_containers_mirror.git
# git push --quiet --set-upstream tasks master
# git pull ${REMOTE_REF} master &&
# git push ${REMOTE_REF} master
git pull "$REPO" master && git push "$REPO" master
}
cd google_containers_mirror_completed_list
setup_git
#commit_website_files
upload_files
cd "$dir"