Commit Graph

47 Commits

Author SHA1 Message Date
Hampus Carlsson
51a9d0a454 Improve docker build workflow in forks (#337)
* Use lowercase repo name for ghcr image

Instead of using hardcoded image name, take it from the repo name. This makes it work well for forks.

* Update container-image.yaml

* Update container-image.yaml

---------

Co-authored-by: Mohamed Chiheb Ben Jemaa <mc.benjemaa@gmail.com>
2024-11-27 16:45:21 +01:00
Vic Kerr
2cd9439788 golangci: configure goimports 2024-11-12 11:52:49 +01:00
Mohamed Chiheb Ben Jemaa
69bfdfd5c8 Group CAPI Deps 2024-11-07 15:06:44 +01:00
dependabot[bot]
09a9422888 build(deps): bump thollander/actions-comment-pull-request from 2 to 3 (#320)
Bumps [thollander/actions-comment-pull-request](https://github.com/thollander/actions-comment-pull-request) from 2 to 3.
- [Release notes](https://github.com/thollander/actions-comment-pull-request/releases)
- [Commits](https://github.com/thollander/actions-comment-pull-request/compare/v2...v3)

---
updated-dependencies:
- dependency-name: thollander/actions-comment-pull-request
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-05 10:39:26 +01:00
Mohamed Chiheb Ben Jemaa
9a79e5efbf Skip e2e based on label (#314)
* Skip e2e based on label

* simplify

* allow skipping Generic

* Add action to add e2e docs into each PR

* Update e2e-comment.yml

* do not permit skipping Generic tests

---------

Co-authored-by: Vic Kerr <wiktor.kerr@ionos.com>
2024-11-04 15:34:38 +00:00
dependabot[bot]
afca76cd2b build(deps): bump anchore/scan-action from 4 to 5
Bumps [anchore/scan-action](https://github.com/anchore/scan-action) from 4 to 5.
- [Release notes](https://github.com/anchore/scan-action/releases)
- [Changelog](https://github.com/anchore/scan-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/anchore/scan-action/compare/v4...v5)

---
updated-dependencies:
- dependency-name: anchore/scan-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-23 09:42:03 +02:00
dependabot[bot]
fbdad0bc2d build(deps): bump SonarSource/sonarcloud-github-action
Bumps [SonarSource/sonarcloud-github-action](https://github.com/sonarsource/sonarcloud-github-action) from 3.0.0 to 3.1.0.
- [Release notes](https://github.com/sonarsource/sonarcloud-github-action/releases)
- [Commits](https://github.com/sonarsource/sonarcloud-github-action/compare/v3.0.0...v3.1.0)

---
updated-dependencies:
- dependency-name: SonarSource/sonarcloud-github-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-08 13:14:14 +00:00
dependabot[bot]
95216059cb build(deps): bump SonarSource/sonarcloud-github-action
Bumps [SonarSource/sonarcloud-github-action](https://github.com/sonarsource/sonarcloud-github-action) from 2.3.0 to 3.0.0.
- [Release notes](https://github.com/sonarsource/sonarcloud-github-action/releases)
- [Commits](https://github.com/sonarsource/sonarcloud-github-action/compare/v2.3.0...v3.0.0)

---
updated-dependencies:
- dependency-name: SonarSource/sonarcloud-github-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-21 09:31:14 +00:00
dependabot[bot]
e3c6c22184 build(deps): bump codespell-project/actions-codespell from 2.0 to 2.1 (#272)
Bumps [codespell-project/actions-codespell](https://github.com/codespell-project/actions-codespell) from 2.0 to 2.1.
- [Release notes](https://github.com/codespell-project/actions-codespell/releases)
- [Commits](94259cd8be...406322ec52)

---
updated-dependencies:
- dependency-name: codespell-project/actions-codespell
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-20 12:41:12 +02:00
dependabot[bot]
aca625f214 build(deps): bump anchore/scan-action from 3 to 4
Bumps [anchore/scan-action](https://github.com/anchore/scan-action) from 3 to 4.
- [Release notes](https://github.com/anchore/scan-action/releases)
- [Changelog](https://github.com/anchore/scan-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/anchore/scan-action/compare/v3...v4)

---
updated-dependencies:
- dependency-name: anchore/scan-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-20 10:34:28 +00:00
dependabot[bot]
915eef179f build(deps): bump docker/build-push-action from 5 to 6
Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 5 to 6.
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/v5...v6)

---
updated-dependencies:
- dependency-name: docker/build-push-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-18 07:23:11 +00:00
dependabot[bot]
20cc3bd1ff build(deps): bump SonarSource/sonarcloud-github-action
Bumps [SonarSource/sonarcloud-github-action](https://github.com/sonarsource/sonarcloud-github-action) from 2.2.0 to 2.3.0.
- [Release notes](https://github.com/sonarsource/sonarcloud-github-action/releases)
- [Commits](https://github.com/sonarsource/sonarcloud-github-action/compare/v2.2.0...v2.3.0)

---
updated-dependencies:
- dependency-name: SonarSource/sonarcloud-github-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-14 07:25:49 +00:00
dependabot[bot]
c726ec1002 build(deps): bump SonarSource/sonarcloud-github-action
Bumps [SonarSource/sonarcloud-github-action](https://github.com/sonarsource/sonarcloud-github-action) from 2.1.1 to 2.2.0.
- [Release notes](https://github.com/sonarsource/sonarcloud-github-action/releases)
- [Commits](https://github.com/sonarsource/sonarcloud-github-action/compare/v2.1.1...v2.2.0)

---
updated-dependencies:
- dependency-name: SonarSource/sonarcloud-github-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-28 13:01:14 +00:00
dependabot[bot]
a4a12868cb build(deps): bump golangci/golangci-lint-action from 5 to 6
Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 5 to 6.
- [Release notes](https://github.com/golangci/golangci-lint-action/releases)
- [Commits](https://github.com/golangci/golangci-lint-action/compare/v5...v6)

---
updated-dependencies:
- dependency-name: golangci/golangci-lint-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-28 09:45:07 +00:00
Vic Kerr
e7ab669b3f e2e: skip workflow on 'skip e2e' label 2024-05-03 08:42:30 +00:00
dependabot[bot]
203a8db355 build(deps): bump golangci/golangci-lint-action from 4 to 5
Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 4 to 5.
- [Release notes](https://github.com/golangci/golangci-lint-action/releases)
- [Commits](https://github.com/golangci/golangci-lint-action/compare/v4...v5)

---
updated-dependencies:
- dependency-name: golangci/golangci-lint-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-30 16:05:57 +00:00
Mohamed Chiheb Ben Jemaa
e057b800ad Cleanup containers 2024-04-29 10:42:36 +00:00
Mohamed Chiheb Ben Jemaa
d73c9dfa5a Fix cleanup (#165)
* e2e: fix cleanup (?)

0fa73f200a did not fix it

* Update e2e.yml

---------

Co-authored-by: Vic Kerr <wiktor.kerr@ionos.com>
2024-04-04 09:18:06 +00:00
Vic Kerr
72d5796235 e2e: fix cleanup (?)
0fa73f200a did not fix it
2024-04-03 13:21:04 +00:00
Mohamed Chiheb Ben Jemaa
0fa73f200a Update e2e.yml 2024-04-03 12:49:46 +02:00
Mohamed Chiheb Ben Jemaa
99c3d1d230 Add post run to cleanup kind clusters from e2e runner (#164)
* Update e2e.yml

* Update e2e.yml
2024-04-03 09:35:49 +00:00
Mohamed Chiheb Ben Jemaa
4c5d880913 Update e2e.yml 2024-04-03 01:00:29 +02:00
Mohamed Chiheb Ben Jemaa
cd732299be Clean kind clusters after e2e 2024-04-03 00:21:49 +02:00
Mario Valderrama
c5fb0e4fe1 chore(ci): Update golangci-lint to 1.57 (#150)
Co-authored-by: Mohamed Chiheb Ben Jemaa <mc.benjemaa@gmail.com>
2024-03-21 15:11:42 +01:00
Mohamed Chiheb Ben Jemaa
4784484bf0 Upgrade Go to v1.21 (#135)
* Update Go to v1.21

* vmservice/ip_test: TestReconcileIPAddresses_AddIPTag: use context.Background()

* vmservice/vm_test: use context.Background()

---------

Co-authored-by: Vic Kerr <wiktor.kerr@ionos.com>
2024-03-13 16:01:30 +01:00
dependabot[bot]
00daed4c2f build(deps): bump softprops/action-gh-release from 1 to 2 (#132)
Bumps [softprops/action-gh-release](https://github.com/softprops/action-gh-release) from 1 to 2.
- [Release notes](https://github.com/softprops/action-gh-release/releases)
- [Changelog](https://github.com/softprops/action-gh-release/blob/master/CHANGELOG.md)
- [Commits](https://github.com/softprops/action-gh-release/compare/v1...v2)

---
updated-dependencies:
- dependency-name: softprops/action-gh-release
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-12 14:40:50 +01:00
dependabot[bot]
f70aeb7e77 build(deps): bump actions/setup-go from 4 to 5
Bumps [actions/setup-go](https://github.com/actions/setup-go) from 4 to 5.
- [Release notes](https://github.com/actions/setup-go/releases)
- [Commits](https://github.com/actions/setup-go/compare/v4...v5)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-02-26 11:21:00 +00:00
Mario Valderrama
fb227f50c4 chore(ci): Enable golangci-lint-action PR annotations (#123) 2024-02-23 15:49:09 +01:00
dependabot[bot]
1910ce5e21 build(deps): bump golangci/golangci-lint-action from 3 to 4
Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 3 to 4.
- [Release notes](https://github.com/golangci/golangci-lint-action/releases)
- [Commits](https://github.com/golangci/golangci-lint-action/compare/v3...v4)

---
updated-dependencies:
- dependency-name: golangci/golangci-lint-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-02-23 10:56:42 +00:00
Vic Kerr
6ee5480fdf github/e2e: run e2e tests on pull_request_target
This is necessary for dependabot PRs.
2024-02-22 15:44:45 +00:00
Mohamed Chiheb Ben Jemaa
19b2292f55 Fix Lint action 2024-02-02 13:31:38 +00:00
Mohamed Chiheb Ben Jemaa
199a89a0ff Add e2e tests (#48)
End-to-end tests.
Can run automatically in an environment from a github action.

---------

Co-authored-by: Vic Kerr <wiktor.kerr@ionos.com>
2024-01-30 12:05:25 +00:00
Vic Kerr
f49ddf9eb2 github: update release template (#88)
* github: update release template

We do not have the resources to maintain release branches.

* Update release.md

---------

Co-authored-by: Mohamed Chiheb Ben Jemaa <mc.benjemaa@gmail.com>
2024-01-26 14:21:44 +00:00
dependabot[bot]
7f2e2531d5 Bump actions/setup-go from 4 to 5
Bumps [actions/setup-go](https://github.com/actions/setup-go) from 4 to 5.
- [Release notes](https://github.com/actions/setup-go/releases)
- [Commits](https://github.com/actions/setup-go/compare/v4...v5)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-26 10:04:25 +00:00
Lucas Pape
10897b910c ci: fix sonarcloud scan pr source (#85) 2024-01-25 16:32:04 +01:00
Vic Kerr
6a617b5b12 fix(ci): fold verify under go_test
verify running in pull_request_target context verifies the upstream rather than the PR.
2024-01-23 14:52:34 +00:00
Vic Kerr
55ae3e74a0 Disable licence header check
The check does not work very well with multiple years.
Also, update the copyright year in boilerplate.
2024-01-23 11:56:48 +00:00
Mohamed Chiheb Ben Jemaa
ed0cbf14cf Update release.md 2024-01-19 16:47:45 +01:00
Mohamed Chiheb Ben Jemaa
8d538a869a Create release.md (#68) 2024-01-19 16:45:33 +01:00
Vic Kerr
61133b2228 ci: sonarcloud: remove unnecessary pull_request trigger 2024-01-18 11:22:27 +00:00
Vic Kerr
7006aec00c ci: run sonarcloud via pull_request_target (#43)
`on.pull_request` executes the workflow out of a forked repository. This means the `SONAR_TOKEN` secret will not be available and therefore the workflow will fail.
By changing it to `on.pull_request_target`, the workflow definition (and code) from the trusted original repository is run and the secret will be available.

see https://github.blog/2020-08-03-github-actions-improvements-for-fork-and-pull-request-workflows/

This partially reverts commit db85b4870a.
2024-01-18 11:13:04 +00:00
Mohamed Chiheb Ben Jemaa
a052fb1d66 Change issue template (#58) 2024-01-11 12:33:40 +01:00
Philipp Born
db85b4870a ci: run sonarcloud via pull_request_target (#43)
`on.pull_request` executes the workflow out of a forked repository. This means the `SONAR_TOKEN` secret will not be available and therefore the workflow will fail.
By changing it to `on.pull_request_target`, the workflow definition (and code) from the trusted original repository is run and the secret will be available.

see https://github.blog/2020-08-03-github-actions-improvements-for-fork-and-pull-request-workflows/

Co-authored-by: Mohamed Chiheb Ben Jemaa <mc.benjemaa@gmail.com>
2023-12-18 12:30:49 +00:00
dependabot[bot]
8a57f359c7 Bump SonarSource/sonarcloud-github-action from 2.0.2 to 2.1.1
Bumps [SonarSource/sonarcloud-github-action](https://github.com/sonarsource/sonarcloud-github-action) from 2.0.2 to 2.1.1.
- [Release notes](https://github.com/sonarsource/sonarcloud-github-action/releases)
- [Commits](https://github.com/sonarsource/sonarcloud-github-action/compare/v2.0.2...v2.1.1)

---
updated-dependencies:
- dependency-name: SonarSource/sonarcloud-github-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-14 16:01:11 +01:00
Mohamed Chiheb Ben Jemaa
b876c935bd Push image (#9) 2023-11-29 14:55:04 +00:00
Mohamed Chiheb Ben Jemaa
313fa6d9b4 Fix Push image (#8)
* Push image

* Test permissions
2023-11-29 15:50:15 +01:00
Vic Kerr
45f5888c41 Initial open source release
Co-authored-by: Felix Wischke <felix.wischke@ionos.com>
Co-authored-by: Jonas Bender <90411737+jonas-be@users.noreply.github.com>
Co-authored-by: Ludwig Bedacht <132355999+lubedacht@users.noreply.github.com>
Co-authored-by: Mario Valderrama <15158349+avorima@users.noreply.github.com>
Co-authored-by: Mohamed Chiheb Ben jemaa <mohamed-chiheb.ben-jemaa@ionos.com>
Co-authored-by: Vic Kerr <318870+wikkyk@users.noreply.github.com>
2023-11-29 14:17:03 +00:00