fix: refactor publish command (#11)
## Description
<!-- **Please link some issue here describing what you are trying to achieve.**
In case there is no issue present for your PR, please consider creating one.
At least please give us some description what you are trying to achieve and why your change is needed. -->
relates to #1234
## Checklist
- [ ] Issue was linked above
- [ ] Code format was applied: `make fmt`
- [ ] Examples were added / adjusted (see `examples/` directory)
- [x] Docs are up-to-date: `make generate-docs` (will be checked by CI)
- [ ] Unit tests got implemented or updated
- [ ] Acceptance tests got implemented or updated (see e.g. [here](f5f99d1709/stackit/internal/services/dns/dns_acc_test.go))
- [x] Unit tests are passing: `make test` (will be checked by CI)
- [x] No linter issues: `make lint` (will be checked by CI)
Reviewed-on: #11
Co-authored-by: Marcel S. Henselin <marcel.henselin@stackit.cloud>
Co-committed-by: Marcel S. Henselin <marcel.henselin@stackit.cloud>
This commit is contained in:
parent
0a21d9f0f2
commit
7fe135f337
3 changed files with 40 additions and 2 deletions
|
|
@ -293,8 +293,11 @@ func createTargetDirs(destPath string) error {
|
|||
if err != nil {
|
||||
return err
|
||||
}
|
||||
err = createDir(path.Join(destPath, v))
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
@ -405,7 +408,8 @@ func createArchitectureFiles(namespace, provider, distPath, repoName, version, g
|
|||
{
|
||||
"protocols": [
|
||||
"4.0",
|
||||
"5.1"
|
||||
"5.1",
|
||||
"6.0"
|
||||
],
|
||||
"os": "%s",
|
||||
"arch": "%s",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue