-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build vttestserver
in GHA and send Slack message on Docker Build failure
#16963
Changes from all commits
50e83c8
654e41d
1c14d44
e25cbd3
1e950a0
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
## vttestserver docker image | ||
|
||
### How to build manually during a release | ||
|
||
If for whatever reason the automatic build did not happen for `vttestserver` during a release, or if it has failed, | ||
there is a way of building it by hand. Here is how it goes: | ||
|
||
```bash | ||
docker login | ||
|
||
# we first checkout to the git tag of the release we want to build | ||
# we assume in this example that we are releasing v21.0.0-rc1, but replace this by any other tag | ||
git checkout v21.0.0-rc1 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We should remove the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We want to checkout the git tag directly, not the release branch. I updated the comment to be more understandable in 1e950a0. |
||
|
||
docker build -f docker/vtttestserver/Dockerfile.mysql80 -t vitess/vttestserver:v21.0.0-rc1-mysql80 . | ||
docker push vitess/vttestserver:v21.0.0-rc1-mysql80 | ||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the reason to use the SHA here instead of a version?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using the SHA instead of the version is part of the OpenSSF best practices. We started doing this some time ago through #16612. This is to comply with #16607.