Commit Graph

129 Commits

Author SHA1 Message Date
Itxaka b733f9f24a Auto push chart to gh-pages
Signed-off-by: Itxaka <igarcia@suse.com>
2022-03-25 09:16:32 +01:00
Itxaka 6ef2ee06b8 Pass the chart name from one job to the other
Signed-off-by: Itxaka <igarcia@suse.com>
2022-03-24 14:48:44 +01:00
Itxaka bcbe339e38 Use the same binary name across
There was a mix of ros-operator and rancheros-operator.

This patch fixes it so its always rancheros-operator, even
changing the repos to have the full name so everything matches

Signed-off-by: Itxaka <igarcia@suse.com>
2022-03-24 13:41:54 +01:00
Itxaka 2d80aeb3bd Keep the raw version on docker push
Signed-off-by: Itxaka <igarcia@suse.com>
2022-03-24 13:35:12 +01:00
Itxaka 005df2f7f2 Add labels to pushed images
Seems to fix an obscure bug that can happen when pushing:
https://github.com/docker/build-push-action/issues/452

Signed-off-by: Itxaka <igarcia@suse.com>
2022-03-24 11:32:44 +01:00
Itxaka 50372f60a0 Trigger integration tests on main branch
Signed-off-by: Itxaka <igarcia@suse.com>
2022-03-24 11:21:43 +01:00
Itxaka beabcc90ae Only push to cos-operator from a tagged release
Signed-off-by: Itxaka <igarcia@suse.com>
2022-03-24 11:12:37 +01:00
Itxaka ac71ea0222 Rename the jobs for easy identification
Signed-off-by: Itxaka <igarcia@suse.com>
2022-03-24 10:39:43 +01:00
Itxaka 115c6669a1 Use the docker actions for pushing
- Easier to set
 - Gets the tags correctly
 - Cleans up afterwards
 - USes gha cache for building

Signed-off-by: Itxaka <igarcia@suse.com>
2022-03-24 10:35:12 +01:00
Itxaka 9f93860d4b Fix integration test
- Run it only under PRs for testing
 - The docker job is the one that pushes the images tot he proper repo
 - Integration will only push to the ros-operator-ci registry

Signed-off-by: Itxaka <igarcia@suse.com>
2022-03-24 10:04:26 +01:00
Itxaka 26684d1888 Drop everything not needed for ros-operator
- Drops everything not needed for ros-operator
 - New simple Dockerfile
 - New jobs based on ros-operator only
 - Remove uneeded tests
 - Remove dependency on os2 images for integration tests
 - Use gorelease to release ros-operator binaries
 - Use docker to push ci images to ros-operator-ci registry on PR
 - Use docker to push master/tag images to ros-operator registry
 - Build chart indepently
 - Have a null test CI job for future integration tests

Signed-off-by: Itxaka <igarcia@suse.com>
2022-03-24 09:47:18 +01:00
Loic Devulder 933b58971e
CI: bootstrapping nodes with MachineRegistration (#56)
* ci: add installation test with Rancher
* ci: add auto-provisioning of the VM
* ci: install Rancher on GH runner
* ci: move rancher installation+configuration in scripts
* ci: define our own MachineRegistration
* ci: install generated RancherOS Operator chart
* ci: don't use default namespace for test cluster
* ci: add TPM device to VM
* ci: refactoring + add OS installation and config
* ci: use iPXE to install the OS
* ci: keep artifacts and cleanup at the end
* ci: use 'script -e -c` to simulate a TTY
* ci: add check on cluster creation
* ci: fix SERVER_ID
* ci: specify that RKE2 can be installed too
* ci: use container image on self-hosted runner
* ci: add missing packages in container
* ci: upload needed logs
* fix/ci: use quays.io and official repos
* fix/ci: '\n' is not needed when assigned to a var
* ci: move bootstrapping node test in tests folder
* ci: add 'make' package

Signed-off-by: Loic Devulder <ldevulder@suse.com>
2022-03-21 17:13:30 +01:00
Ettore Di Giacinto f38d2ef0c7
ci: Split upload of testing artifacts (#57)
Upload iso, qcow, box and chart images individually so they can be
downloaded easier during development.

Fixes: #37

Signed-off-by: Ettore Di Giacinto <edigiacinto@suse.com>
2022-03-18 16:01:41 +01:00
Ettore Di Giacinto 5bb91d21f7
Disable verify (#50)
* Disable mtree

Fixes: https://github.com/rancher-sandbox/os2/issues/49
Signed-off-by: Ettore Di Giacinto <edigiacinto@suse.com>

* Add installation test suite

Move the installation setup for tests to leverage ros-installer and
reworks it to be run as a suite.

At the moment only covers installation with container images, but is a
setup that would work as well for other scenarios.

Signed-off-by: Ettore Di Giacinto <edigiacinto@suse.com>

* Bump cOS

Signed-off-by: Ettore Di Giacinto <edigiacinto@suse.com>

* Disable mirror override

Signed-off-by: Ettore Di Giacinto <edigiacinto@suse.com>

* fix: Set 0 size for max autogrow

Signed-off-by: Ettore Di Giacinto <edigiacinto@suse.com>
2022-03-14 14:11:51 +01:00
Itxaka 649ad79a9d
Use ros-operator image for the ros-operator chart (#40) 2022-03-08 14:18:07 +01:00
Itxaka 9fed2edefc
Rework golangci-lint config and github CI (#34) 2022-03-03 09:16:03 +01:00
Ettore Di Giacinto f830f7d19b
ci: run on GHA
Signed-off-by: Ettore Di Giacinto <edigiacinto@suse.com>
2022-02-25 16:07:17 +01:00
Ettore Di Giacinto b051e089a1
ci: use action fork, set parallelism to 1
Signed-off-by: Ettore Di Giacinto <edigiacinto@suse.com>
2022-02-10 11:44:59 +01:00
Ettore Di Giacinto 391ea8a565
ci: run release pipeline on self-hosted
Signed-off-by: Ettore Di Giacinto <edigiacinto@suse.com>
2022-02-10 09:29:56 +01:00
Ettore Di Giacinto 5fe7ae9c33
ci: save up some space 2022-02-09 18:44:00 +01:00
Ettore Di Giacinto 3dbed14d11
ci: run self-hosted
gather logs in case of failure

Signed-off-by: Ettore Di Giacinto <edigiacinto@suse.com>
2022-02-09 16:53:00 +01:00
Ettore Di Giacinto 5f2d8071fe
tests: Add ros-operator smoke test
Signed-off-by: Ettore Di Giacinto <edigiacinto@suse.com>
2022-02-09 15:32:14 +01:00
Ettore Di Giacinto 0532c0ee7b
ci: fixup artifact upload 2022-02-01 17:14:45 +01:00
Ettore Di Giacinto d99fca748a
Handle ENV var prefix rename, add tests for read config
Signed-off-by: Ettore Di Giacinto <edigiacinto@suse.com>
2022-01-31 16:53:16 +01:00
Ettore Di Giacinto 8240a456b3
ci: move test utils inside tests
Also add rancherd smoke test

Signed-off-by: Ettore Di Giacinto <edigiacinto@suse.com>
2022-01-28 13:37:58 +01:00
Ettore Di Giacinto 1067e8f345
ci: Add pipeline to build project on GHA
- Add test and static analysis workflows
- Add test/release workflow
- Add smoke integration tests
- Support specifying a docker registry.
- Scope release test runs to pkg
- Add DOCKER_REGISTRY to dapper env

Signed-off-by: Ettore Di Giacinto <edigiacinto@suse.com>
2022-01-28 13:37:52 +01:00
Darren Shepherd 786d5f8bff Fix gh-action 2021-11-30 23:04:26 -07:00
Darren Shepherd 4e708c8a1b Add install docs 2021-10-21 13:49:54 -07:00
Darren Shepherd 6a9bea4ebe Add initial docs framework 2021-10-20 16:01:11 -07:00