Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@nickboldt
Last active September 19, 2022 13:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nickboldt/445d6fd02471a9d879c7221dbcc5ed83 to your computer and use it in GitHub Desktop.
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
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