Commit Graph

73 Commits

Author SHA1 Message Date
Jonathon Anderson
66a23900e9 Revert "run go mod tidy after go mod vendor" 2024-06-07 11:15:49 -06:00
xu yang
e5f6fa5a05 run go mod tidy after go mod vendor
Signed-off-by: xu yang <xyang@ciq.com>
2024-06-07 05:57:57 +00:00
xu yang
53cf8b5845 fix the nightly release build failure
Signed-off-by: xu yang <xyang@ciq.com>
2024-05-01 00:08:10 -06:00
Jonathon Anderson
aa9229a67c Fetch all history during tagged-release
Tags are required during tagged-release, but attempting to fetch only
tags caused an error of the form:

    Cannot fetch both <sha> and refs/tags/<name> to refs/tags/<name>

Switching to just downloading all history.

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2024-04-18 17:11:17 -06:00
Jonathon Anderson
6d5a7735d9 Fetch tags during tagged-release
Tags are required for dynamic version generation.

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2024-04-18 17:04:28 -06:00
Jonathon Anderson
79b8853cd8 Update tagged-release to accomodate new artifact names
Dynamic versioning of Warewulf releases broke the release process. This
simplifies and fixes finding of release artifacts during tagged-release.

This also removes CentOS 7 as a release target, as previous attempts to
fix building on CentOS 7 by omitting the API still failed to run the
testsuite.

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2024-04-18 14:52:54 -06:00
Christian Goll
4e6cd1b9c9 skip changelog-enforcer for typos
Signed-off-by: Christian Goll <cgoll@suse.com>
2024-04-10 12:15:31 +02:00
Jonathon Anderson
f232c912ad Run tests against PRs to v4.*.x branches
Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2024-04-03 23:58:50 -06:00
Christian Goll
122a366586 Merge pull request #1149 from JasonYangShadow/golang_upgrade
upgrade golang version to 1.20
2024-03-22 09:05:49 +01:00
Xu Yang
2cb0f84f4e upgrade golang version to 1.20
Signed-off-by: Xu Yang <xyang@ciq.com>
2024-03-21 21:04:48 -06:00
Jonathon Anderson
3feeb8dd41 Update issue templates to reflect our new dedicated Slack
Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2024-03-15 15:15:48 -06:00
Xu Yang
d78af656de upgrade minimum golang version
Signed-off-by: Xu Yang <xyang@ciq.com>
2024-03-15 02:35:49 -06:00
Jonathon Anderson
8c63d34bc5 Prompt apt to update prior to prepare
Working around an apparent error in GitHub

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2024-03-09 19:10:51 -07:00
Jonathon Anderson
629dbd603f Change documentation repository_dispatch to workflow_dispatch
Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2024-03-06 23:03:47 -06:00
Jonathon Anderson
0c1fef5cd5 Support manually updating documentation
Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2024-03-06 23:00:29 -06:00
Jonathon Anderson
07e71d3fa5 Quote asterisks in documentation workflow
Yaml strings containing asterisks require quoting, because asterisks have
special meaning otherwise.

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2024-03-06 22:33:32 -06:00
Brian Clemens
d1f7b21943 Install Graphviz in userdocs CI workflow
Signed-off-by: Brian Clemens <brian@ciq.com>
2024-02-26 18:50:17 +09:00
Jonathon Anderson
ea8e4680bc Update tagged release workflow
- Don't use git hash in build identifier for tagged release
- Update upstream action versions
- Initiate release from pushed tag

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2024-02-17 22:22:31 -07:00
Jonathon Anderson
a1832ad8c1 Complete transfer of Warewulf from HPCng
Warewulf is now being maintained in its own GitHub organization at
github.com/warewulf

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2024-01-26 21:35:04 -07:00
Jonathon Anderson
5d6ef1882d Remove whitespace damage
Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2024-01-21 00:18:38 -07:00
Brian Clemens
648ebe2abc Update website repo URL
Signed-off-by: Brian Clemens <brian@ciq.com>
2024-01-11 11:04:13 +09:00
jason yang
163b0aa4f4 add git tag to nightly release
Signed-off-by: jason yang <jasonyangshadow@gmail.com>
2023-12-07 11:53:24 +00:00
jason yang
618ba74b8b add workflow_dispatch
Signed-off-by: jason yang <jasonyangshadow@gmail.com>
2023-12-07 03:50:09 +00:00
jason yang
a0cea0f74e remove update_latest_release tag
Signed-off-by: jason yang <jasonyangshadow@gmail.com>
2023-12-07 02:43:54 +00:00
jason yang
3fd2899b1f add nightly release support
Signed-off-by: jason yang <jasonyangshadow@gmail.com>
2023-12-06 13:17:22 +00:00
Jonathon Anderson
4f41a569dd Replace development with main
The development branch has been replaced with the main branch in GitHub.
Replaces references to development in docs, commands, configuration, and
workflows.

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2023-11-25 00:27:52 -07:00
Jonathon Anderson
2f32d567d3 Update docs for release branches
Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2023-10-27 15:51:52 -06:00
Jonathon Anderson
a2b353af56 Only build docs on push when docs are updated
Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2023-10-27 15:49:23 -06:00
Jonathon Anderson
9c3894f24e Update workflow to verify fmt
To support this, I refactored the actions to use a composite action so
that all checks could run with the same setup.

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2023-10-24 16:47:52 -06:00
Jonathon Anderson
7e9b3b48de Fix spelling of "changelog"
Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2023-10-16 10:17:23 +02:00
Jonathon Anderson
44090a5984 Reflow release.yml
Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2023-10-16 10:17:22 +02:00
Jonathon Anderson
a69a205820 Refactor and update release workflow
- Use a matrix for multiple builds
- Merge mockbuild.sh into release.yml
- Upload dist only once (not once per build)
- Make release package uploads more explicit (makes errors more visible)
- Configure mock to log to the runner log
- Use variables to define artifact names only once
- Target the release explicitly by id
- Run the test suite in each mock environment (fixes #369)
- Update OpenSUSE Leap build to 15.5 (15.3 is EOL and not building
  correctly)
- Add a Rocky Linux 9 build
- Switch to Rocky Linux 9 build container (mostly to get mock
  configuration for newer OpenSUSE Leap)
- Allow successful releases to complete if some releases fail
  (`fail-fast: false`)

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2023-10-16 10:17:22 +02:00
Christian Goll
45bce6c59d Merge pull request #958 from anderbubble/changelog-skip-labels
Skip changelog enforcement for certain labels
2023-10-16 08:02:55 +02:00
Jonathon Anderson
c28c807946 Skip changelog enforcement for certain labels
Skipping changelog enforcement for PRs with one of these labels:

refactor, testing, build, project.

Such labels likely indicate a non-user-visible change which need not be
reflected in the changelog. (Of course, a changelog entry may still be
made if appropriate, even if not required by the enforcer.)

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2023-10-13 23:46:10 -06:00
Jonathon Anderson
036e085af0 Updated the PR template
- fixed a malformed link
- added a checkbox for the DCO
- fixed heading levels
- made checks actual checkboxes

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2023-10-13 23:26:12 -06:00
Jonathon Anderson
2e4fc832c4 Update GitHub issue templates
Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2023-09-08 18:37:22 -06:00
Christian Goll
2892781078 Update tested golang version
Signed-off-by: Christian Goll <cgoll@suse.de>
2023-08-21 16:19:13 -06:00
Jonathon Anderson
bf3995d6f5 Clean up test targets in Makefile
Most notably, replaces the test-it target with a more simply named test
target.

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2023-08-10 11:43:46 -06:00
Jonathon Anderson
5146403c4e Enable the changelog enforcer
* https://github.com/marketplace/actions/changelog-enforcer
* https://dangoslen.medium.com/enforcing-a-changelog-with-github-actions-279119ed4182

Closes #278

Signed-off-by: Jonathon Anderson <janderson@ciq.co>
2023-04-19 20:10:42 -06:00
Christian Goll
ce43dfa0b7 removed getters as configs must exportable
Signed-off-by: Christian Goll <cgoll@suse.de>
2023-03-06 10:20:00 +01:00
Jonathon Anderson
c9450ddac4 Initial dependabot configuration
Signed-off-by: Jonathon Anderson <janderson@ciq.co>
2023-02-21 09:45:37 -07:00
Jonathon Anderson
1a59080a99 Fix repository owner test in documentation workflow
Signed-off-by: Jonathon Anderson <janderson@ciq.co>
2023-02-21 09:32:52 -07:00
Jonathon Anderson
47b3fbca07 Quote path expression in documentation workflow
Signed-off-by: Jonathon Anderson <janderson@ciq.co>
2023-02-21 09:28:11 -07:00
Jonathon Anderson
2ec38ae3b5 Update GitHub CI to build docs and lint
Signed-off-by: Jonathon Anderson <janderson@ciq.co>
2023-02-21 09:04:43 -07:00
Jonathon Anderson
c72d54c5f4 Templates for GitHub issues and pull requests
Ported in from Apptainer

Signed-off-by: Jonathon Anderson <janderson@ciq.co>
2023-01-08 13:24:32 -07:00
Michael L. Young
792c3574b7 Add SRPM Artifact To Releases
* Upload SRPMs that are created
* Update actions/checkout to v3

Closes #614

Signed-off-by: Michael L. Young <myoung@ciq.co>
2022-12-22 22:21:50 -05:00
Christian Goll
f005fbc601 Merge pull request #555 from elguero/buildtestfixup
[CI/CD] Build Testing Improvement
2022-12-09 09:57:11 +01:00
Jonathon Anderson
78b857a3e4 Whitespace cleanup
Removes trailing whitespace from all source files.

Signed-off-by: Jonathon Anderson <janderson@ciq.co>
2022-12-08 18:59:56 -07:00
Michael L. Young
d217279a04 [CI/CD] Build Testing Improvement
We are pinning version 1.17 for the linting workflow. Go 1.16
has been EOL for almost two years and even EL7 releases have
1.17 available now. Removed 1.16 from our test matrix.

This commit does the following:

* Update the build testing workflow to run on development branch
* Remove go 1.16 and add 1.19 to test build workflow

Signed-off-by: Michael L. Young <myoung@ciq.co>
2022-10-06 00:55:38 -04:00
Michael L. Young
ec555f2d5e [CI/CD] Check owner of repo before running documentaton GH action
If a fork is running GH actions, do not create the static
documentation and try to push to the warewulf documentation repo.

Signed-off-by: Michael L. Young <myoung@ciq.co>
2022-10-05 23:40:05 -04:00