Commit Graph

77 Commits

Author SHA1 Message Date
Darragh Bailey
7f7706fe82 Create codeql.yml (#1698) 2022-12-15 14:04:42 +00:00
Darragh Bailey
1733e1cc19 Drop testing against ruby 2.2 for vagrant 2.0.4 (#1694)
Vagrant 2.0.4 no longer appears in any supported release of a distro,
therefore drop testing of it in CI along with the version of ruby
needed.
2022-12-08 23:17:54 +00:00
Darragh Bailey
1f6309b0bf Add docs to install latest development version (#1683)
Provide directions in both the issue template for bug reports and in the
main README to help users install the very latest development version of
the plugin.

Include a warning about the token getting embedded in the vagrant
plugins.json file.
2022-12-01 23:33:50 +00:00
Darragh Bailey
6bbde74be0 Ensure acceptance tests are executed (#1680)
Ensure the acceptance tests are actually executed and resolve any issues
that have crept in since they were not running as expected.

Call the ResolveDiskSettings on reload to ensure that the start domain
action will have all of the necessary configuration for any additional
storage disks added.

Tidy up create domain output when disks are attached.

Fixes: #1678
2022-11-23 17:33:10 +00:00
Darragh Bailey
2444889155 Replace use of secret for org name (#1662)
Rely on whether docker username/token is available to publish the image
to docker hub only and discard use of the secret for the org name.

Ensure org name is normalized for dockerhub.
2022-11-04 17:03:15 +00:00
Darragh Bailey
e34a791b5b Attempt to passing multiple lines via env context (#1661) 2022-11-04 14:43:33 +00:00
Darragh Bailey
6109957d50 Attempt to treat image names as text block (#1659)
Passing the image names directly to an input variable appears to result
in encoding the newline intended to provide a second name to be built
and have tags appended.
2022-11-04 14:02:33 +00:00
Darragh Bailey
dee41760cf Roll forward to ruby 3.1 and remove patches (#1660)
Use ruby 3.1 vagrant main and latest release, dropping the current
patching as these should now work with more recent rubies.

Retain the current ruby-libvirt patch.
2022-11-04 13:51:53 +00:00
Darragh Bailey
585cf6dd67 Remove calls to set-output as now deprecated (#1657) 2022-11-03 19:30:57 +01:00
Darragh Bailey
87131a171f Ensure buildah job checks out pull request changes (#1656)
With the change to using pull_request_target, need to ensure the buildah
job also checks out the PR contents.
2022-11-03 18:20:44 +00:00
Darragh Bailey
1ff551e1a5 Fix docker image workflow syntax issue (#1655) 2022-11-03 17:32:10 +00:00
Darragh Bailey
7697d03323 Ensure reusable workflow reference correctly (#1654)
Reference the main branch for where to find the reusable workflow.
Additionally make sure that login to docker hub is only for push to
main and tags.
2022-11-03 16:58:09 +01:00
Darragh Bailey
b709758c00 Publish docker image to github packages for PRs (#1646)
Publish images built from PRs to the github container registry to
provide a
simple way to test changes made by being able to pull the built
container.
2022-11-03 14:49:55 +00:00
Darragh Bailey
aa826b2291 Switch to using github generated release notes (#1652)
To avoid constantly hitting too many API requests, switch to using
github release note generation for releases.
2022-11-02 19:35:43 +01:00
dependabot[bot]
f77a878345 Bump JamesIves/github-pages-deploy-action from 4.4.0 to 4.4.1 (#1645) 2022-10-17 09:46:20 +00:00
dependabot[bot]
736190ae41 Bump actions/github-script from 5 to 6 (#1637) 2022-10-10 12:52:26 +00:00
Darragh Bailey
629ead3140 Adjust workflow to work for forked PRs (#1635)
Save the triggering PR as an artifact when building the gem as it will
be required by the triggered workflow to determine the PR that triggered
it since Github does not populate the event data if the PR is a forked
PR.
2022-10-07 10:24:11 +00:00
Darragh Bailey
67e36bd2a3 Workflow to notify gem artifact available for PR (#1632)
Adds workflow to publish a link to the gem artifact built for the
current PR. Allows for contributors or those impacted by issues to have
an easier test mechanism.
2022-10-05 18:39:25 +00:00
Darragh Bailey
8e45f3abb2 Ensure credentials file permissions set correctly (#1631) 2022-10-05 13:38:28 +00:00
Darragh Bailey
48c31f12b3 Make code available as gem for test installs (#1629)
Make it possible for others to help validate vagrant-libvirt plugin
changes by building a gem that can be installed from a github packages
repository.
2022-10-05 00:11:00 +01:00
dependabot[bot]
28c68d2f99 Bump actions/github-script from 6.3.0 to 6.3.1 (#1626) 2022-10-03 10:10:51 +00:00
Darragh Bailey
6d5ad2b87c Update development steps (#1623)
Ensure the development steps can be successfully executed with system
ruby on Fedora 36 to try and help new contributors have an easier
on-ramp.

Support running acceptance tests locally, though note that it may
require rvm if vagrant doesn't support the ruby version used by the
distro.
2022-10-01 15:53:00 +01:00
dependabot[bot]
c0ce667a31 Bump actions/github-script from 6.2.0 to 6.3.0 (#1617) 2022-09-29 11:34:05 +00:00
dependabot[bot]
e94b73b015 Bump actions/upload-artifact from 2 to 3 (#1616) 2022-09-29 11:06:50 +00:00
dependabot[bot]
f4038b803b Bump actions/download-artifact from 2 to 3 (#1615) 2022-09-28 23:01:57 +00:00
Darragh Bailey
0c1d97ec7c Use correct release branch for changelog (#1612)
Ensure changelog generation job uses resolved branch instead of default.
2022-09-28 18:34:49 +01:00
Darragh Bailey
14a8889e33 Rework release workflow (#1609)
Change the release workflow and jobs to ensure more of it is always
exercised for any change and only the actual publishing of the release
is the only part that is limited to be run when tagged.

Additionally try to enable caching and save the generated notes as an
artifact in case the final step fails.
2022-09-28 14:06:53 +01:00
Dan Čermák
309f78c8fd [Dockerfile] Fix creation of plugins.json with buildah (#1602)
Multi-line RUN instructions are unsupported by default docker (works 
with buildkit) and buildah, instead one has to use other tricks like 
ANSI-C quoting for the shell via \n\ and multiple echo commands.

Includes a buildah github workflow to help ensure future
compatibility.
2022-09-22 16:42:58 +01:00
dependabot[bot]
fdff19b311 Bump actions/github-script from 3.0.0 to 6.2.0 (#1594) 2022-09-13 08:12:59 +00:00
dependabot[bot]
deb2b0a923 Bump docker/setup-buildx-action from 1 to 2 (#1596) 2022-09-12 14:25:32 +00:00
dependabot[bot]
6775bf81b6 Bump actions/cache from 2 to 3 (#1595) 2022-09-12 14:15:41 +00:00
dependabot[bot]
cf2ffa3d26 Bump docker/build-push-action from 2 to 3 (#1593) 2022-09-12 14:03:38 +00:00
dependabot[bot]
281422fda0 Bump JamesIves/github-pages-deploy-action from 4.3.3 to 4.4.0 (#1591) 2022-09-08 18:59:27 +00:00
dependabot[bot]
6226d4d6cd Bump CharMixer/auto-changelog-action from 1.1 to 1.4 (#1590) 2022-09-08 18:52:00 +00:00
dependabot[bot]
f46cd70144 Bump actions/checkout from 2 to 3 (#1589) 2022-09-08 18:41:24 +00:00
dependabot[bot]
5412b0638c Bump docker/setup-qemu-action from 1 to 2 (#1588) 2022-09-08 18:29:39 +00:00
dependabot[bot]
48f164e67d Bump docker/login-action from 1 to 2 (#1587) 2022-09-08 17:34:28 +00:00
Darragh Bailey
bbbe33eac2 Add actions to be updated by dependabot (#1586) 2022-09-08 17:20:41 +00:00
Darragh Bailey
84e2fed626 Fix release workflow default branch detection (#1585)
Ensure that the github script to retrieve the default branch uses string
encoding instead of json. This will strip the unnecessary quotes
preventing matching.
2022-09-08 18:14:27 +01:00
Darragh Bailey
ba2c7be494 Handle REXML requires for Ubuntu focal (#1584)
The distribution provided vagrant package on Ubuntu 20.04 is version
2.2.6 running on ruby 2.7.2. It appears that the rexml layout is
slightly different and imports different paths than the current code
expects. Add this combination to the unit tests and switch the requires
to load the specific library requirements instead of relying on rexml
loading everything underneath.

Additionally it appears the hook behaviour change appeared earlier that
the understood vagrant release of 2.2.11, and 2.2.6 also requires the
newer hook behaviour.
2022-09-08 12:44:05 +01:00
Darragh Bailey
602b4e9ad8 Replace remaining stray references with main (#1582)
Ensure default branch has been fully updated everywhere to main, which
should fix the running of the unit and integration tests on the main
branch.
2022-09-07 10:50:28 +00:00
Darragh Bailey
c4efd1de49 Correct type for workflow event (#1570) 2022-09-01 17:39:13 +00:00
Darragh Bailey
06fd99fcef Fix github context reference in workflow (#1548)
Ensure references to the github context are correct.
2022-08-17 12:23:19 +01:00
Darragh Bailey
4fc3c8481d Adjust to ensure previews load isolated code (#1547)
Ensure previews use the plugin script from the tree instead
of the common one for latest and version releases
2022-08-15 22:42:26 +01:00
Darragh Bailey
8717eb6935 Explicity set action for preview action input (#1542)
GitHub actions have changed behaviour subtly in that
now setting the env is no longer sufficient for the
following action to pick up automatically.

Instead switch to being explicit.
2022-08-12 21:27:02 +00:00
a1346054
af77b859e3 Trim trailing whitespace 2022-08-08 22:46:07 +00:00
Darragh Bailey
5fa1ed9dbd Create dependabot config (#1530)
Enable dependency updates for docs generation
2022-07-24 09:00:51 +00:00
Darragh Bailey
82202945ce Migrate documentation to github pages (#1523)
Switch from having all documentation contained within the README to
publishing a jekyll static site of documentation under github pages.

This allows for configuration and installation guides to be handled
separately to make for the relevant pieces to be in smaller chunks and
therefore easier to follow for users. Additionally a table of contents
can now be included in a left navigation section that ensures it should
be possible to quickly jump from the start to any section and back
again.

Include support for publishing previews and releases under separate
directories to allow for them to exist at the same time as the other
latest version of the documents.

The navigation section also includes support for accessing any of the
other versions published so that it easier to see what configuration
options exist for a given release. These will be published automatically
when releases are added.
2022-07-19 13:48:02 +00:00
Darragh Bailey
a02208ff88 Correct reference to daysUntilClose (#1516) 2022-06-19 12:19:53 +00:00
Darragh Bailey
cbd81fee81 Switch no-response action as probot deprecated (#1514) 2022-06-19 13:45:14 +02:00