-
Notifications
You must be signed in to change notification settings - Fork 57
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
Add callable workflow for only building the server image #87
Conversation
e9bbde3
to
2652c1d
Compare
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v1 | ||
|
||
- name: Build Server Image |
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.
is there any way to share more of this with docker.yml?
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.
They will be combined later by @mindaugasrukas
cba69fa
to
e2a33f4
Compare
239c603
to
2ccc748
Compare
d9ee887
to
b14fae5
Compare
b14fae5
to
d2ce63b
Compare
This is now working as used by temporalio/temporal#3627 |
# Git info is needed for Go build to attach VCS information properly. | ||
# See the `buildvcs` Go flag: https://pkg.go.dev/cmd/go | ||
COPY ./.git ./.git | ||
COPY ./.gitmodules ./.gitmodules |
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.
We can leave this for now.
I'm curious to know how we use that buildvcs
information.
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.
The info is passed through to some internal variables that are used in places like CLI info:
https://github.com/temporalio/temporal/blob/af9130dcdbede1a8983069fde69d7c139d9d7b22/common/build/build.go#L42
Create a workflow which can be called by other repos to just build a docker image of server, so that they can use it for testing a certain commit, etc, without needing a published image.
Draft while working through using it from the server repo w/ sdk-features.