[#587] Build OCI images for release tags #588
Labels
No labels
P0
P1
P2
P3
good first issue
Infrastructure
blocked
bug
config
discussion
documentation
duplicate
enhancement
go
help wanted
internal
invalid
kludge
observability
perfomance
question
refactoring
wontfix
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-s3-gw#588
Loading…
Reference in a new issue
No description provided.
Delete branch "potyarkin/frostfs-s3-gw:feature/ci-build-oci-image"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
v*
tags.workflow_dispatch
can be used to trigger the job manually without modifying the repository. This can come handy if we'll need to incorporate upstream changes in base image (e.g. root CA certificates)TODO:
72fac6a60e
to9593f7bc75
9593f7bc75
to9da9cb85e3
9da9cb85e3
to3780f7b816
3780f7b816
to642fc27d32
WIP: [#587] Build OCI images for release tagsto [#587] Build OCI images for release tagsI believe we're ready to merge this.
After merge we can trigger a manual build for one of existing tags, and if everything goes OK, I'll create similar PRs for other repos.
@ -0,0 +1,27 @@
on:
pull_request:
push:
workflow_dispatch:
Am I right that this job is going to be triggered on every push / pr merge, however it will build image only when commit contains release tag according to condition?
No, the job will build the image (
make image
) for each push/PR but will publish the image (make image-push
) only for release tags. This is somewhat wasteful: we will build a lot of images we don't need, and I welcome suggestions on how to reduce that waste.Disabling image builds for everything except release tags can (and probably will) backfire: we may push a release tag and find out that our image build pipeline is broken only after the fact. A clean manual workaround would not be possible: modified build recipes would make our repo tree diverge from the tagged version, and pushing such image under the release tag would not be fair.
The workflow suggested in this PR would exercise image build pipeline often and we would notice its failure long before pushing a new release. The only step not covered would be
image-push
: in case of job failure a manual push would not dirty the worktree and would not introduce any misinformation to the published artifact.