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

chore: Speedup docker multiarch build #1738

Merged
merged 4 commits into from
Jan 31, 2023
Merged

chore: Speedup docker multiarch build #1738

merged 4 commits into from
Jan 31, 2023

Conversation

schoren
Copy link
Contributor

@schoren schoren commented Dec 22, 2022

This PR changes the build pipeline to use more of goreleaser's features, and improving cache and parallelization. The end goal is to have faster multi arch docker builds, but also speed our pipelines in general.

This PR changes the deploy main and release pipelines. This has not been totally tested because the only way to really test is is to do a real deploy main and release. It has been tested up to a point where it shouldn't be different from the previos pipeline.

Example runss:

In both examples the pipeline fails because of invalid credentials, so everything works until the actual publishing of artifacts.

@@ -1,4 +1,4 @@
name: Deploy main
name: Deploy main 2
Copy link
Contributor

Choose a reason for hiding this comment

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

I suppose that was a test

@schoren schoren force-pushed the speedup-docker-build branch 2 times, most recently from 5e7ff71 to a4cf30b Compare January 31, 2023 21:36
Dockerfile Outdated
FROM alpine AS release
# Enable machine-id on alpine-linux (https://gitlab.alpinelinux.org/alpine/aports/-/issues/8761)
RUN apk add dbus
Copy link
Contributor

Choose a reason for hiding this comment

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

We removed this lib on purpose because we were having a lot of problems with duplicate machineids on docker at the beginning of January. The PR with the fallback is here: #1797

@schoren schoren merged commit e3db7c2 into main Jan 31, 2023
@schoren schoren deleted the speedup-docker-build branch January 31, 2023 22:42
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