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

ci: Docker release improvements #109

Merged
merged 3 commits into from
Sep 9, 2024
Merged

Conversation

caffeine-addictt
Copy link
Owner

What type of PR is this? (check all applicable)

  • Refactor
  • Feature
  • Bug Fix
  • Optimization
  • Breaking Change
  • Documentation Update

Description

  • Do not rebuild within docker for release
  • Skip latest and v{major} for prereleases
  • Build for arm64 as well
  • Use docker manifests to group arm64 and amd64 images

Related Tickets & Documents

QA Instructions, Screenshots, Recordings

Please replace this line with instructions on how to test your changes, a note
on the devices and browsers this has been tested on, as well as any relevant
images for UI changes.

Added/updated tests?

We encourage you to keep the code coverage percentage at 80% and above.

  • Yes
  • No, and this is why: please replace this line with details on why tests
    have not been included
  • I need help with writing tests

[optional] Are there any post deployment tasks we need to perform?

Checklist

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.

Following goreleaser docs, they recommend copying the built binaries
into docker isntead of building the binaries within docker itself.

To still allow people to build docker without running goreleaser,
Dockerfile will be left alone and we will use Dockerfile.release for
release isntead.

This will also speed up build times by quite a fair bit.

Signed-off-by: AlexNg <[email protected]>
@caffeine-addictt caffeine-addictt self-assigned this Sep 9, 2024
@github-actions github-actions bot added the Type: CI A problem or enhancement related to continuous integration. label Sep 9, 2024
@caffeine-addictt caffeine-addictt merged commit 3aa4324 into main Sep 9, 2024
9 checks passed
@caffeine-addictt caffeine-addictt deleted the ci/docker-improvements branch September 9, 2024 15:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: CI A problem or enhancement related to continuous integration.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant