Commit Graph
69 Commits
Author SHA1 Message Date
subhamkrai 0dab47d408 build: use buildx instead of manifest-tool
instead of using of using manifest-tool and updating
it's version, we can use docker buildx which works like
manifest-tool only and based on manifest-tool working.

Signed-off-by: subhamkrai <srai@redhat.com>
2026-02-17 15:01:50 +05:30
Travis Nielsen 9a23e7c91b Revert "build: fix docs publish from extraheader error"
This reverts commit 4a03715386.
2025-11-25 15:30:32 -07:00
Travis Nielsen beac8244ae Revert "build: use proper github token for docs publish"
This reverts commit 09e7952600.
2025-11-25 15:27:36 -07:00
Travis Nielsen 09e7952600 build: use proper github token for docs publish
The docs publish requires a token with write access to
the docs repo, so override the default rook repo
github token.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2025-11-25 14:18:41 -07:00
Travis Nielsen 4a03715386 build: fix docs publish from extraheader error
Removing the .extraheader config is failing with
error 5. Attempt to remove this call to attempt
to get the docs publishing successfully again.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2025-11-25 11:37:59 -07:00
subhamkrai 7dd21a0468 build: use cosign to sign the images/helm charts
this commit added changes to use cosign to sign the
docker images and the helm charts being published to
different the oci repos. This will enhance software supply
chain security by enabling signing and verification of
container images, ensuring their authenticity and integrity

Signed-off-by: subhamkrai <srai@redhat.com>
2025-09-19 12:05:28 +05:30
Michael AdamandTravis Nielsen 987e9c8bb5 build: merge helm indexes instead of recreating for every release (really)
A new helm repo index was created from scratch for every new release
    which meant that the release timestamps in the index were basically all
    identical.

    This change intends to fix that by merging the new index with the
    existing one

The first attempt to fix this (PR #16033) did not work properly.
This change is intended to fix the issue for good by closing the gap the
previuous PR has left.

    Fixes: #15604

Co-Authored-By: Travis Nielsen <tnielsen@redhat.com>
Signed-off-by: Michael Adam <obnox@samba.org>
2025-06-23 16:57:33 +02:00
Michael Adam 2704f23ea7 build: merge helm indexes instead of recreating for every release
A new helm repo index was created from scratch for every new release
which meant that the release timestamps in the index were basically all
identical.

This change intends to fix that by merging the new index with the
existing one

Fixes: #15604

Signed-off-by: Michael Adam <obnox@samba.org>
2025-06-19 22:24:07 +02:00
Travis Nielsen 0f0b3b2df8 Revert "ci: only publish docs in master and tagged releases"
This reverts commit 28fa387dff.
2025-05-08 12:19:13 -06:00
Travis Nielsen 28fa387dff ci: only publish docs in master and tagged releases
Until now, docs have been published for every master and
release branch build. This can lead to confusion if a new
feature is backported to the release branch and the docs
are published to the website, even though the feature will
not be available until the next tagged release.

This does have the effect that small doc-only fixes will
not be in the latest release docs until we actually tag
a release.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2025-05-05 13:44:07 -06:00
Travis Nielsen 63e13868ea build: push arch specific images to the registries
The arch specific images were not be pushed since the make
target was missing.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2025-04-21 14:37:19 -06:00
Travis Nielsen 7d908d0a5e build: stop publishing charts in master branch
The helm charts will now only be published when it is
an officially tagged release build.

The images will only be published to all repos for
dockerhub, quay, and ghcr when it is a tagged release.

The images will be published only to dockerhub for all
master and interim release branch builds.

Remove obsolete makefile option for images.
Ceph is the only image Rook ever expects to build.
Simplify the makefile by removing the legacy option
to select which image to build.

Also included are other small improvements to clean up
the release scripts.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2025-04-18 10:40:29 -06:00
Allen Conlon 1291045c7f ci: fix push version mismatch
Signed-off-by: Allen Conlon <software@conlon.dev>
2025-03-25 17:04:48 -04:00
Allen Conlon 2cbcbffd52 ci: fix version of chart not existing
Signed-off-by: Allen Conlon <software@conlon.dev>
2025-03-25 15:50:13 -04:00
Allen Conlon fa2e499727 ci: publish helm charts to oci repos
Signed-off-by: Allen Conlon <software@conlon.dev>
2025-03-21 20:15:59 -04:00
subhamkrai df3c757141 ci: push rook image to other oci like quay,ghcr
currently rook images are only available in docker,
let's start pushing rook images to quay.io and ghcr.io as well.

Signed-off-by: subhamkrai <srai@redhat.com>
2025-02-27 09:44:29 +05:30
subhamkrai ea159ad9b7 ci: remove extra comma from platforms
The last pr missed removing the extra comma after the platform
so, instead of ` linux/amd64,linux/arm64,` it should be
` linux/amd64,linux/arm64`.

Signed-off-by: subhamkrai <srai@redhat.com>
2024-05-16 14:47:51 +05:30
subhamkrai f89540c4ef ci: push image ci failing in ubuntu 22.04
since we moved to ubuntu 22.04, ci push image build is failing
due wrong parameter `--platforms linux/amd64 linux/arm64,` it should
be instead `--platforms linux/amd64, linux/arm64`.

Signed-off-by: subhamkrai <srai@redhat.com>
2024-05-15 22:09:16 +05:30
Scott Miller e28c107a76 build: fix bad quotation in make help
Signed-off-by: Scott Miller <smiller1@coreweave.com>
2024-01-25 13:01:01 +00:00
Alexander Trost 4a48c14861 ci: fix mike deploy flags
This fixes the docs deploy issues caused by the mike 2.0.0 release that
removed/renamed some flags, see
https://github.com/jimporter/mike/releases/tag/v2.0.0

Signed-off-by: Alexander Trost <galexrt@googlemail.com>
2023-11-03 17:03:08 +01:00
Alexander Trost ecb6ba7383 build: allow overriding variables from a dot env file
This helps forks build custom rook releases more easily by allowing
certain Makefile vars to be overwriten using a `.env` file.
In addition this introduces the `DOCKERCMD` var to the
`build/release/Makefile`.

Signed-off-by: Alexander Trost <galexrt@googlemail.com>
Signed-off-by: Deepika Upadhyay <deepika@koor.tech>
Signed-off-by: Zuhair AlSader <zuhair@koor.tech>
2023-03-31 11:34:07 -04:00
Alexander Trost 1724cdcb92 build: use script to reliably determine latest released release branch
Signed-off-by: Alexander Trost <galexrt@googlemail.com>
2022-09-20 23:38:45 +02:00
Travis Nielsen c4304e4b92 docs: update the latest-release docs to 1.10
With the v1.10.0 release out, the latest-release docs need
to point to the 1.10 release. With each release we will
update to the next release branch when we have shipped.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2022-09-01 12:45:25 -06:00
Alexander Trost a0cb255f90 build: fix working dir for docs building
Signed-off-by: Alexander Trost <galexrt@googlemail.com>
2022-06-28 09:34:56 +02:00
Alexander Trost de28a21879 build: add separate docs build and preview targets
This adds two new make target for building and previewing the current
state of the documentation locally.

Signed-off-by: Alexander Trost <galexrt@googlemail.com>
2022-06-27 13:29:25 +02:00
Alexander Trost de5777cde0 build: remove extraheader from git config
Signed-off-by: Alexander Trost <galexrt@googlemail.com>
2022-05-24 19:41:55 +02:00
Alexander Trost 46fa71c720 docs: build docs from repo root
Signed-off-by: Alexander Trost <galexrt@googlemail.com>
2022-05-24 17:01:09 +02:00
Alexander Trost 2f75104238 docs: don't cd during docs publish
Signed-off-by: Alexander Trost <galexrt@googlemail.com>
2022-05-24 16:11:49 +02:00
Alexander Trost a156dc3ae7 docs: fix docs_dir build issue
Resolves #10282

Signed-off-by: Alexander Trost <galexrt@googlemail.com>
2022-05-24 11:55:21 +02:00
Travis Nielsen 03a091e741 ci: fix the doc build generation script
The doc build generation script is failing to install
the needed dependencies for mkddocs.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2022-05-19 14:05:18 -06:00
Alexander Trost 0d815c0ffc docs: fix docs publish repo target
Signed-off-by: Alexander Trost <galexrt@googlemail.com>
2022-05-19 13:27:07 +02:00
Alexander Trost 74431443e3 docs: use mkdocs and restructure docs
Signed-off-by: Alexander Trost <galexrt@googlemail.com>
2022-05-18 16:06:22 +02:00
Sébastien Han 6fb67a297d build: only produce binary for linux
We now build rook to build only for linux platforms and not darwin nor
windows anymore.

Signed-off-by: Sébastien Han <seb@redhat.com>
2021-11-04 15:13:40 +01:00
Travis Nielsen fee7e82416 docs: publish master docs to latest path
Rename the master docs to latest. This will be easier
to understand for users who are new to the project.
The url will also contain latest, which will be more
clear to reference instead of the master path. This
also follows the pattern of the ceph docs site.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2021-09-10 17:55:14 -06:00
Blaine Gardner 7febd4e303 ci: add debugging to release build script
Signed-off-by: Blaine Gardner <blaine.gardner@redhat.com>
2021-09-01 13:58:21 -06:00
Artur 0754695655 build: switch to new aws buckets
Signed-off-by: Artur <artur@upbound.io>
2021-01-15 23:58:23 -08:00
Alexander Trost e5ba1fa7a8 build: update manifest-tools version to v1.0.2
This updates the manifest-tools from v1.0.0 to v1.0.2 to
pickup the following fix
https://github.com/estesp/manifest-tool/pull/90.

This currently prevents the build to push images to Docker
hub.

Resolves #5194

Signed-off-by: Alexander Trost <galexrt@googlemail.com>
2020-04-07 19:47:50 +02:00
Travis Nielsen de06c5c2ec build: update manifest tool version to v1.0.0
The manifest tool is needed for pushing images to dockerhub.
The tool has been failing the past two days due to running
an old version.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2020-03-06 11:59:27 -07:00
Travis Nielsen 67c0b02848 Merge pull request #3078 from travisn/no-extra-release-tags
No longer generate "release" docker tag during release build promotion
2019-12-12 12:55:04 -07:00
Travis Nielsen eb1dadccb2 build: always use the version suffix from tag pipeline
The version suffix such as alpha.0, beta.0, or rc.0 only apply
when running the tag pipeline or the release build. Otherwise,
we don't want to use the suffix from the master build.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2019-12-09 17:43:29 -07:00
travisn 1d97a6089d build: sanitize the master tag
The master branch uses the first tag from the last release
to create the version tag. Since the 1.1 release this tag
can include the alpha, beta, or rc tags, which only make
sense for the release tags, but not the master tag. This
change removes the suffix from the master tag.

Signed-off-by: travisn <tnielsen@redhat.com>
2019-10-14 10:58:51 -06:00
travisn 82b5c0d48d allow git tags to be added for alpha, beta, or rc releases
The tag pipeline currently only allows a strict versioning tag to be
applied with the major, minor, and patch numbers such as v1.1.0.
This change allows adding a suffix to the tag to support alpha,
beta, or rc releases. For example, the version can now be
v1.1.0-alpha.0 or v1.1.0-beta.1 or v1.1.0-rc.2

Signed-off-by: travisn <tnielsen@redhat.com>
2019-08-27 16:18:26 -06:00
travisn 0dd62eb56f build: do not add generic release docker tag
To support upgrades, the operator relies on a changing tag
between versions so that when a pod spec is updated, k8s will
restart the pod due to the new image name. If the image name
does not change, the operator cannot control the upgrade deployment.
Therefore, we do not support a generic docker tag such as
rook/ceph:release and we expect specific version tags to be
specified in the operator such as rook/ceph:v1.0.0.
The master build is tagged with a generic tag for convenience
of testing the latest builds, but it is important to note that
upgrades are not supported between master builds.

Signed-off-by: travisn <tnielsen@redhat.com>
2019-08-26 14:24:05 -06:00
travisn 81f55a12eb build: promote builds only to master and release
The alpha, beta, and stable channels do not match the rook release process.
Each storage provider defines their own stability based on the CRDs
rather than defining it with the release process. Rook really
only has two release streams: master and the official releases.
Master is published with each merge, while releases go through
a signoff process to ensure quality. Thus, the alpha, beta,
and stable channels are removed and replaced with a
single release channel.

Signed-off-by: travisn <tnielsen@redhat.com>
2019-04-27 22:49:11 -06:00
Michael Goff f88a9b78ba docs: Update the build process to use the new docs build process
Signed-off-by: Michael Goff <thephred@gmail.com>
2019-02-13 11:20:41 -08:00
Bassam Tabbara e2fd1eb8e6 Merge pull request #2054 from SUSE/ceph-makefiles-skip-image-save
Image build/release: do not save image for builds; save only for release
2018-08-23 10:09:19 -07:00
Blaine Gardner 60b4a1e4d3 Image make: Move save image step to release builds
The image save step in the image build makefiles takes half or more of
the time of builds, and this step is not necessary for development
builds. Move this functionality to the `build/release/Makefile` so that
images are saved during release builds but not during dev builds. This
will allow developers to iterate more quickly on their builds.

Signed-off-by: Blaine Gardner <blaine.gardner@suse.com>
2018-08-23 09:49:56 -06:00
Jared Watts dd948b155a build: remove support for quay.io
Signed-off-by: Jared Watts <jbw976@gmail.com>
2018-08-17 14:03:55 -07:00
Blaine Gardner 483163fc21 make: Allow building select images
Raise the scope of the `IMAGES` config variable in the
`build/release/Makefile` to the `build/makelib/common.mk` file, and use
the `IMAGES` variable in the `images/Makefile` to allow users to build
only select images.

Examples of new use:
  make IMAGES='ceph ceph-toolbox' build
  make -C build/release IMAGES='ceph ceph-toolbox' publish

The 'images/image.mk' clean.build target was changed to use
`CLEAN_IMAGES` instead of `IMAGES`, as it was conflicting with use of
the parameter in image builds.

Added IMAGES option to top-level make's help text. The text for this
option exceeded 80 lines in the `Makefile` itself, so the help text was
refactored to eliminate `    @echo '<text>'`. The `Makefile` text should
now match exactly what is output to the user including line length.

Added IMAGES option to `INSTALL.md` file's "Build" section and also
moved some text around and added a few extra points of clarification
there to hopefully improve readability, especially for first-time
readers.

Signed-off-by: Blaine Gardner <blaine.gardner@suse.com>
2018-07-20 15:49:46 -06:00
Tony Allen 7442f8713b Implement Minio operator w/ tests.
Signed-off-by: Tony Allen <tony@upbound.io>
2018-06-21 16:41:30 -07:00