Last active
September 19, 2022 13:58
-
-
Save nickboldt/445d6fd02471a9d879c7221dbcc5ed83 to your computer and use it in GitHub Desktop.
building a scratch image from a private branch using a non-standard version string
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
git checkout devspaces-3-rhel-8 | |
git pull origin devspaces-3-rhel-8 | |
git branch private-crw-build-text-version-suffix -u origin/private-crw-build-text-version-suffix | |
git checkout private-crw-build-text-version-suffix | |
vim Dockerfile | |
# diff --git a/Dockerfile b/Dockerfile | |
# - version="3.1" \ | |
# + version="3.1.pr" \ | |
git commit -s -m "append .pr to version" Dockerfile | |
git push origin private-crw-build-text-version-suffix | |
# trigger scratch build | |
brewTaskID=$(rhpkg container-build --target devspaces-3-rhel-8-containers-candidate --scratch --nowait | sed -r -e "s#.+: ##" | head -1) | |
if [[ $brewTaskID ]]; then | |
google-chrome "https://brewweb.engineering.redhat.com/brew/taskinfo?taskID=${brewTaskID}" | |
brew watch-logs ${brewTaskID} | tee /tmp/${brewTaskID}.txt | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment