Skip to content
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

Merged
merged 3 commits into from
Dec 7, 2022

Conversation

Sushisource
Copy link
Member

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.

@Sushisource Sushisource force-pushed the just-build-image-workflow branch 16 times, most recently from e9bbde3 to 2652c1d Compare November 23, 2022 22:46
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- name: Build Server Image
Copy link
Member

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?

Copy link
Member Author

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

.github/workflows/docker-build-only.yml Show resolved Hide resolved
@Sushisource Sushisource force-pushed the just-build-image-workflow branch 7 times, most recently from cba69fa to e2a33f4 Compare December 2, 2022 18:24
@Sushisource Sushisource force-pushed the just-build-image-workflow branch 5 times, most recently from 239c603 to 2ccc748 Compare December 6, 2022 20:30
@Sushisource Sushisource force-pushed the just-build-image-workflow branch 14 times, most recently from d9ee887 to b14fae5 Compare December 6, 2022 23:43
@Sushisource Sushisource marked this pull request as ready for review December 7, 2022 00:03
@Sushisource Sushisource requested a review from a team as a code owner December 7, 2022 00:03
@Sushisource
Copy link
Member Author

This is now working as used by temporalio/temporal#3627

admin-tools.Dockerfile Outdated Show resolved Hide resolved
.github/workflows/docker-build-only.yml Outdated Show resolved Hide resolved
.github/workflows/docker-build-only.yml Outdated Show resolved Hide resolved
.github/workflows/docker-build-only.yml Show resolved Hide resolved
Comment on lines +17 to +20
# 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
Copy link
Contributor

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.

Copy link
Member Author

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

@Sushisource Sushisource merged commit 5040ebb into main Dec 7, 2022
@Sushisource Sushisource deleted the just-build-image-workflow branch December 7, 2022 22:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants