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

Refactor cmds to make external reusing easier #43

Closed
wants to merge 7 commits into from
Closed

Conversation

juamedgod
Copy link
Contributor

By moving the different cmds into their own sub-packages, we make it easier to reuse the high-level functionality (mainly wrap and unwrap) by external tools.

juamedgod and others added 7 commits January 23, 2024 17:33
Remove the need for manual release preparation commits:

- Add a new `Prepare release` workflow that creates a pull request
preparing the new release
- Modify the `Release` job to run when:
  - A pull request modifying the `plugins.yaml` is merged, and
  - The pull request head reference matches `release/**`
With the current configuration, the release workflow and the CI
workflow run in parallel. We would want the CI workflow to finish
before the release workflow runs. With this PR:

- The release workflow will run when a CI workflow completes in `main`
- The release job in the workflow will only run if:
  - The CI workflow was successful, and
  - The head commit message for that workflow contains "Prepare release v"
- A version check exits the job if version in `plugin.yaml` has not changed
from the previous release (the latest tag equals the version in the file)
The version command prints two new lines at the end. This PR removes
one of them.
* Show warning when there are no images to pull

The output of `dt wrap` and `dt images pull` shows the following message
when there are no images to pull:

```
       ✔  All images pulled successfully
```

Instead, we are going to show a warning when there are no images to pull:

```
       ⚠️  No images found in Images.lock
```

* Add missing scenario

* Improve error flow

* Don't try to pull images if there are no images to pull
@juamedgod
Copy link
Contributor Author

Closing to recreate it without (hopefully) conflicts

@juamedgod juamedgod deleted the refactor-cmds branch January 23, 2024 16:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants