Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New tool to bump current_versions.sh automatically #54

Merged
merged 1 commit into from
Feb 15, 2021

Conversation

gianarb
Copy link
Contributor

@gianarb gianarb commented Feb 12, 2021

This commit contains a new utility that helps to automate a version bump
for sandbox.

You can run this command to get the vibe of what it does.

$ go run cmd/bump-version/main.go -help

In order to try it out, you can run this command from the sandbox root. By
default, it won't overwrite anything. It will print to stdout a new
version of the current_versions.sh file where all the images are
calculate cloning the various repositories

$ go run cmd/bump-version/main.go

If you want to overwrite the current_versions file you can use the flag
-overwrite.

More will come but for now, that's the PoC. Ideally, this can be hooked
to CI/CD and run periodically, opening a PR that can be evaluated and
merged.

We will be able to add validation for the images. Right now we mainly do a translation from commit sha to image tag. But we can try to pull the image, or read the manifest to check that everything is fine.

@gianarb gianarb added the ci-check/vagrant-setup This label trigger a GitHub action that tests the Vagrant Setup guide https://tinkerbell.org/setup/ label Feb 12, 2021
@gianarb gianarb force-pushed the feat/new-bump-command-utility branch 3 times, most recently from 1852615 to 0322d35 Compare February 12, 2021 11:44
@gianarb gianarb added ci-check/vagrant-setup This label trigger a GitHub action that tests the Vagrant Setup guide https://tinkerbell.org/setup/ and removed ci-check/vagrant-setup This label trigger a GitHub action that tests the Vagrant Setup guide https://tinkerbell.org/setup/ labels Feb 12, 2021
@gianarb gianarb force-pushed the feat/new-bump-command-utility branch from 0322d35 to 2ab4751 Compare February 12, 2021 11:55
This commit contains a new utility that helps to automate a version bump
for sandbox.

You can run this command to get the vibe of what it does.

```
$ go run cmd/bump-version/main.go -help
```

In order to try it out you can run this command form sandbox root. By
default it won't overwrite anything. It will print to stdout a new
version of the current_versions.sh file where all the images are
calculate cloning the various repositories

```
$ go run cmd/bump-version/main.go
```

If you want to overwrite the current_versions file you can use the flag
`-overwrite`.

More will come but for now, that's the PoC. Ideally this can be hooked
to CI/CD and run periodically, opening a PR that can be evaluated and
merged.

Signed-off-by: Gianluca Arbezzano <gianarb92@gmail.com>
@gianarb gianarb force-pushed the feat/new-bump-command-utility branch from 2ab4751 to d6a057c Compare February 12, 2021 13:47
@gianarb gianarb added ci-check/vagrant-setup This label trigger a GitHub action that tests the Vagrant Setup guide https://tinkerbell.org/setup/ and removed ci-check/vagrant-setup This label trigger a GitHub action that tests the Vagrant Setup guide https://tinkerbell.org/setup/ labels Feb 12, 2021
@gauravgahlot gauravgahlot merged commit 813e9b1 into master Feb 15, 2021
@mmlb mmlb deleted the feat/new-bump-command-utility branch November 19, 2021 21:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci-check/vagrant-setup This label trigger a GitHub action that tests the Vagrant Setup guide https://tinkerbell.org/setup/
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants