-
Notifications
You must be signed in to change notification settings - Fork 228
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
Replace Drone pipeline with Github actions #2168
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
weyfonk
force-pushed
the
2121-replace-drone-pipeline
branch
2 times, most recently
from
March 1, 2024 10:12
aca1c09
to
0d89dfd
Compare
manno
reviewed
Mar 1, 2024
manno
reviewed
Mar 1, 2024
manno
reviewed
Mar 1, 2024
manno
reviewed
Mar 1, 2024
manno
reviewed
Mar 1, 2024
manno
reviewed
Mar 1, 2024
manno
reviewed
Mar 1, 2024
manno
reviewed
Mar 1, 2024
manno
reviewed
Mar 1, 2024
@@ -10,6 +11,10 @@ FROM base AS copy_buildx | |||
ONBUILD ARG TARGETARCH | |||
ONBUILD COPY bin/fleetcontroller-linux-${TARGETARCH} /usr/bin/fleetcontroller | |||
|
|||
FROM base AS copy_goreleaser | |||
ONBUILD ARG ARCH | |||
ONBUILD COPY fleetcontroller-linux-${ARCH} /usr/bin/fleetcontroller |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess this is needed because of no_unique_dist_dirs
?
Previously:
Lines 11 to 12 in fb18a5e
FROM base AS copy_goreleaser | |
ONBUILD COPY fleetcontroller /usr/bin/fleetcontroller |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Correct.
weyfonk
force-pushed
the
2121-replace-drone-pipeline
branch
from
March 4, 2024 09:08
0d89dfd
to
3827cb5
Compare
weyfonk
force-pushed
the
2121-replace-drone-pipeline
branch
from
March 5, 2024 17:00
3827cb5
to
005ad3a
Compare
manno
approved these changes
Mar 5, 2024
This adds a new CI workflow for releasing Fleet via GoReleaser, with configuration inherited from a previous pull request and extended. This runs linters, then unit and integration tests, after which it builds then releases all needed binaries and Docker images for Fleet. Dockerfiles are adapted to GoReleaser's particularity of building Docker images using the build directory as context. In this case, we configure GoReleaser to output all binaries to a common root `dist/` directory, so that all binaries are available to all Docker image build processes. This is useful to include eg. both `gitjob` and `gitcloner` binaries in the `rancher/gitjob` image. Windows-based images are not supported, and should not be needed anyway as the Fleet agent is only ever deployed to Linux k8s nodes.
weyfonk
force-pushed
the
2121-replace-drone-pipeline
branch
from
March 6, 2024 07:45
005ad3a
to
ef70466
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This provides a new
release-fleet.yaml
CI workflow to replace our.drone.yml
pipelines.Here is an example of a release generated by this new workflow.
Refers to #2121
Additions
gitjob
andgitcloner
binariesLimitations/Possible improvements
Doubts
gitjob
andgitcloner
binaries on their own? Would having them inrancher/gitjob
images be enough?Left to do
.drone.yml
and Dapper./scripts/