1
0
Fork 0
mirror of https://github.com/kubernetes-sigs/node-feature-discovery.git synced 2024-12-14 11:57:51 +00:00
Commit graph

20 commits

Author SHA1 Message Date
Markus Lehtonen
7b8e85c4ea docs: fixup site baseurl setting
Change build configuration related to site baseurl and Jekyll output
directory a bit. Making it more coherent e.g. by removing the need to
override baseurl for 'site-serve' makefile target.
2020-11-02 13:51:09 +02:00
Markus Lehtonen
5295feb1ee docs: polish the version menu
Only show the dynamic version menu in production environment where it's
available. Local (development) builds only show a stub version menu with
one item.

Also, fix the theme customization. Append version list items to the
correct element in html so that they are displayed correctly. Drop
unnecessary <div/>.
2020-10-30 08:41:33 +02:00
Markus Lehtonen
c05c6f2e5b docs: make the list of available versions dynamic
Make the list of available versions dynamic. The items displayed is now
generated with javascript. The parent directory of the site is supposed
to contain versions.js providing getVersionListItems() that returns the
available versions.

The update-gh-pages.sh script is modified to update/create versions.js
on every invocation. It simply lists all directories in the root
directory and adds them to the version list.
2020-10-22 21:44:49 +03:00
Markus Lehtonen
502a8c83a9 update-gh-pages.sh: create 'stable' symlink
Create/update a symlink to the documentation of the latest released
version (if one exists).
2020-10-22 21:44:49 +03:00
Markus Lehtonen
ad0db00a50 scripts: fix gh-pages build failure in prow
Work around stupid uid/gid magic that happens inside the jekyll docker image.
2020-10-22 21:31:05 +03: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
Markus Lehtonen
d77398bc50 scripts: one more variable override fix in test-e2e.sh 2020-09-22 10:29:29 +03:00
Markus Lehtonen
1e3c971651 scripts: don't use '-e' command line option for make
There is no reason to override variables from the environment anymore.
2020-09-15 11:53:50 +03:00
Markus Lehtonen
e8e3fce851 scripts: explicitly override VERSION in push-image.sh
Without using -e to override variables from the environment.
2020-09-15 11:46:48 +03:00
Carlos Eduardo Arango Gutierrez
bac690813a
Drop gcloud auth for image pushing
gcloud auth call in push_image.sh test script is no longer needed

Signed-off-by: Carlos Eduardo Arango Gutierrez <carangog@redhat.com>
2020-09-12 07:38:38 -05:00
Kubernetes Prow Robot
cf21e415dd
Merge pull request #349 from marquiz/devel/golangci-lint
scripts: update golangci-lint to v1.30.0 in verify.sh
2020-09-08 04:47:43 -07:00
Markus Lehtonen
d77d76e95d scripts: update golangci-lint to v1.30.0 in verify.sh 2020-09-04 10:45:51 +03:00
Markus Lehtonen
852c817bf6 scripts/test-infra: add build.sh
A script for verifying (non-docker) build.
2020-09-04 10:04:28 +03:00
Markus Lehtonen
86659fb100 scripts: configure docker authentication in push-image.sh
As we're trying to push the images directly from the phase job and not
use 'images:' targets in cloudbuild.yaml.
2020-09-03 23:35:07 +03:00
Markus Lehtonen
4899de7e59 scripts: use a reproducible version in push-image.sh
We don't have a full git repo in the gcb builds so our version/tag magic
inside the makefile does not work. With this patch we get the version
information from the builder environment - fortunately we can do that by
simply stripping the date prefix from the _GIT_TAG variable. By
stripping the date of we match what our makefile does.
2020-09-03 17:19:10 +03:00
Markus Lehtonen
ff5e36be0d scripts: drop special image name handling from test-e2e.sh
Let's just rely on our Makefile everywhere. Plus the previous version
was essentially broken as _PULL_BASE_REF env variable was not available
in testing jobs.
2020-09-03 16:01:36 +03:00
Markus Lehtonen
799da7cbb9 cloudbuild.yaml: build using make
Use make for building our container image (through a new push-image.sh
script) instead of building directly with docker. This way we avoid the
container image tag naming hassle where we build and push the image on
"image-pushing" prow job and need to be able to reliably re-create the
same tag on the "testing" side for end-to-end tests. This also has the
advantage that the same mechanism (make) is used everywhere, i.e. in
image-pushing, testing and locally.
2020-09-03 16:01:36 +03:00
Markus Lehtonen
5974b4d905 scripts: fix verify.sh
Modify PATH in order to make sure that golangci-lint is found.
2020-09-03 15:02:35 +03:00
Markus Lehtonen
05f5d2a88a scripts/test-infra: add script for end-to-end testing
Add a new script for running end-to-end tests. Implement a Makefile rule
for polling the container image. We need this for prow as there is no
other way for syncing the jobs (e2e postsubmit job must wait until the
image-pushing job has built and published the image). This is
implemented in the Makefile as all the image-related variables are also
defined/available there.

Also, adapt the TravisCI config to use the new script.
2020-08-27 14:48:37 +03:00
Markus Lehtonen
33eabbdd22 scripts: add scripts for kubernetest test-infra jobs
A step towards moving away from TravisCI.
2020-08-11 15:55:31 +03:00