-
Notifications
You must be signed in to change notification settings - Fork 699
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix our continuous release process (#271)
* Fix our continuous release process which is broken (#270) * Our releaser has been crash looping and not released any new images since 12/23. * Docker image used to build releases needs YARN and NodeJs to build the FE. * We refactored release.py and split cloning and building the code into two steps in #189. So we had to refactor how we build from the latest green to account for these changes. * release.py no longer has a function to periodically check the latest post submit and rebuild if necessary * Created a simple shell script launch_build.sh to check out the latest green commit and then build the code; We invoke the build function in the code checked out.
- Loading branch information
Showing
6 changed files
with
90 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/bin/bash | ||
set -ex | ||
|
||
while :; do | ||
echo starting build cycle | ||
SRC_DIR=`mktemp -d /tmp/tfk8s.src.tmp.XXXXXX` | ||
|
||
# We should be in the working directory where the copy of py is baked into | ||
# the container | ||
cd /opt/tf_k8s_releaser/ | ||
python -m py.release clone --src_dir=${SRC_DIR} lastgreen | ||
|
||
GOPATH=${SRC_DIR}/go | ||
mkdir -p ${GOPATH} | ||
|
||
# Change to the directory we just cloned so that we pull the code from | ||
# the code we just checkout. | ||
# TODO(jlewi): Uncomment before submitting | ||
cd ${SRC_DIR} | ||
python -m py.release build_new_release \ | ||
--src_dir=${SRC_DIR} \ | ||
--registry=gcr.io/tf-on-k8s-dogfood \ | ||
--project=tf-on-k8s-releasing \ | ||
--releases_path=gs://tf-on-k8s-dogfood-releases | ||
|
||
rm -rf ${SRC_DIR} | ||
|
||
sleep 300 | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters