1
0
Fork 0
mirror of https://github.com/kubernetes-sigs/node-feature-discovery.git synced 2024-12-15 17:50:49 +00:00
Commit graph

13 commits

Author SHA1 Message Date
Markus Lehtonen
3c47b4f32f Revert "build(deps): bump actions/checkout from 1 to 4"
Checkout v4 does some strange mangling of tags, basically overwrites our
signed/annotated tag with something like:

  /usr/bin/git -c protocol.version=2 fetch --no-tags --prune \
    --no-recurse-submodules origin \
    +2e93c3fd478b6631dd7bda9c6ec66a9f99cafaa8:refs/tags/v0.16.0

Which breaks our gh-pages build on release branches/tags.

This reverts commit 130ef1070d.
2024-05-27 20:59:56 +03:00
Kubernetes Prow Robot
c763ea99db
Merge pull request #1687 from kubernetes-sigs/dependabot/github_actions/master/actions/checkout-4
build(deps): bump actions/checkout from 1 to 4
2024-04-29 09:22:21 -07:00
dependabot[bot]
130ef1070d
build(deps): bump actions/checkout from 1 to 4
Bumps [actions/checkout](https://github.com/actions/checkout) from 1 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v1...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-29 16:04:57 +00:00
dependabot[bot]
2cf73f39a3
build(deps): bump azure/setup-helm from 3 to 4
Bumps [azure/setup-helm](https://github.com/azure/setup-helm) from 3 to 4.
- [Release notes](https://github.com/azure/setup-helm/releases)
- [Changelog](https://github.com/Azure/setup-helm/blob/main/CHANGELOG.md)
- [Commits](https://github.com/azure/setup-helm/compare/v3...v4)

---
updated-dependencies:
- dependency-name: azure/setup-helm
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-29 16:04:54 +00:00
Markus Lehtonen
72bf84c4fa github: separate workflow for helm repo index update
No need to (re-)build documentation when a release is published.
Great simplification of the Helm repo index update script: do not scan
all releases but just get the assets from the release that was
published.

This separation should make the maintenance of scripts and workflows
easier.
2023-09-18 11:28:10 +03:00
Markus Lehtonen
ef3ad8f5f3 github: prevent parallel runs of gh-pages update
Ensure sequential updates to the gh-pages branch. Otherwise, if parallel
jobs are triggered, onnly one (the first to complete) will succeed and
the others will fail with git push error (because the tip of the
gh-pages has moved and their commit doesn't apply anymore).
2023-09-15 11:43:23 +03:00
Markus Lehtonen
aa9050eca3 github: update gh-pages on published releases
This will make the Helm repo to be updated at release time.
2021-03-18 15:32:15 +02:00
Kubernetes Prow Robot
086f8c3b7a
Merge pull request #457 from marquiz/devel/helm-repo
Host NFD Helm repo in gh-pages
2021-03-17 04:00:56 -07:00
Markus Lehtonen
dfae747e84 scripts/update-gh-pages: manage a Helm repo
Make the update-gh-pages.sh script to maintain a Helm charts repository
under charts/ subdirectory in gh-pages. The script now (always) scans
throught all release assets and injects any found Helm chart archives
into the Helm repo. In practice, new assets in all Github releases are
scanned and the Helm repo is updated on any update of the master or
release branches or on any new tags. Asset ids are tracked/cached in
order to avoid unnecessary downloads, but also, to capture any changes
in assets that were already merged in the repo index.

After this a user is able to do something like

$ helm repo add nfd http://kubernetes-sigs.github.io/node-feature-discovery/charts
  ...
$ helm repo update
  ...
$ helm install nfd/node-feature-discovery --namespace nfd --create-namespace --generate-name
  ...
2021-03-09 14:14:29 +02:00
Markus Lehtonen
42ebb285a3 github: limit gh-pages build of tags to (final) semver releases 2021-03-08 10:16:17 +02:00
Markus Lehtonen
30e3d0b8b9 github: switch to checkout v1
V2 handles tags incorrectly
(https://github.com/actions/checkout/issues/290) and the easiest
solution is to simply switch to v1.
2020-12-07 12:35:05 +02:00
Markus Lehtonen
ad042f92f5 scripts/update-gh-pages: only update docs if version has been released
Only update documentation if the version has been released (i.e. a git
tag corresponding the version we're updating exists) or it is for the
master branch. Prevents us from pointing users to documentation of an
unreleased version.

Also updates github workflow to fetch full commit history (including
tags) so that git describe works correctly.
2020-12-03 12:54:14 +02:00
Markus Lehtonen
c5beeffb6a Enable automated update of gh-pagaes
Add 'scripts/github/update-gh-pages.sh' for updating gh-pages branch.
This new script intended for github actions integration and builds the
html documentation from the currently checked-out commit and updates the
corresponding version subfolder in the gh-pages branch. The version is
taken from GITHUB_REF environment variable and defaults to 'master' if
the env var is empty. For testing purposes or manual updates the
subfolder can also be given directly as a command line argument.

Add 'scripts/test-infra/build-gh-pages.sh' for verifying that site
(gh-pages) builds successfully. This is intended for integration with
kubernetes test-infra.

Finally, add Github workflow for updating gh-pages. This job is run on
master and release branches plus all tags starting with letter 'v'.
2020-10-08 10:54:24 +03:00