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

build: fix the image to work with golangci-lint #201

Merged
merged 2 commits into from Nov 8, 2021

Conversation

creachadair
Copy link
Contributor

@creachadair creachadair commented Nov 8, 2021

Note to reviewers: Because the tests use the existing image, and we do not have local credentials to manually push a new one, this PR temporarily disables the test cases to get a new image built. I will revert that change after the image updates.

In #195 I updated the Go version, and also swapped from Debian to Alpine for
the base image. This was OK for the build, but it turns out we also use the
same image to run golangci-lint. That action uses a binary for a different
architecture, which fails on this image.

So:

  • Keep the Go version, but revert the base image.
  • Split image layers to make rebuilds faster.
  • Add version labels as arguments.
  • Add some documentation to the workflow configs.

In #195 I updated the Go version, and also swapped from Debian to Alpine for
the base image. This was OK for the build, but it turns out we also use the
same image to run golangci-lint. That action uses a binary for a different
architecture, which fails on this image.

So:
- Keep the Go version, but revert the base image.
- Split image layers to make rebuilds faster.
- Add version labels as arguments.
- Add some documentation to the workflow configs.
@creachadair creachadair merged commit d652058 into master Nov 8, 2021
@creachadair creachadair deleted the mjf/build-image-2 branch November 8, 2021 22:23
creachadair pushed a commit that referenced this pull request Nov 9, 2021
In #195 I updated the Go version, and also swapped from Debian to Alpine for
the base image. This was OK for the build, but it turns out we also use the
same image to run golangci-lint. That action uses a binary for a different
architecture, which fails on this image.

So:
- Keep the Go version, but revert the base image.
- Split image layers to make rebuilds faster.
- Add version labels as arguments.
- Add some documentation to the workflow configs.
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.

None yet

2 participants