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

Makefile: update Docker image when toolchain changes #617

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

kari-ts
Copy link
Collaborator

@kari-ts kari-ts commented Feb 27, 2025

Update Docker image every three months to force periodic rebuilds.

Fixes tailscale/corp#26816
Signed-off-by: kari-ts kari@tailscale.com

@kari-ts kari-ts requested a review from barnstar February 27, 2025 19:33
@kari-ts kari-ts changed the title Makefile: update Docker image every three months Makefile: update Docker image when toolchain changes Feb 27, 2025
Update Docker image whenever we update the toolchange to force rebuild.

Fixes tailscale/corp#26816
Signed-off-by: kari-ts <kari@tailscale.com>
GO_TOOLCHAIN_REV := $(shell cat go.toolchain.rev)

# Define the Docker image tag using the current revision.
DOCKER_IMAGE := tailscale-android-build-amd64-$(GO_TOOLCHAIN_REV)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This actually won't work the way it is because we have no way of refreshing the builder when the android toolchain updates (which won't get refreshed automatically). Can we append the android toolchain here as well? That should be sufficient. Maybe toss in a constant as well, just in case we ever have to manually trigger a refresh for other reasons.

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.

2 participants