Commit graph

56 commits

Author SHA1 Message Date
renovate[bot]
f8b953466b
chore(deps): update module golang.org/x/crypto to v0.29.0 (#42) 2024-11-16 23:24:45 +01:00
renovate[bot]
6cc128ffe9
chore(deps): update module github.com/hetznercloud/hcloud-go/v2 to v2.16.0 (#49) 2024-11-16 23:20:05 +01:00
renovate[bot]
baf35bb218
chore(deps): update dependency golangci/golangci-lint to v1.62.0 (#50) 2024-11-16 23:19:55 +01:00
66dc5f70b6
fix(cli): local install fails because of go.mod replace (#47)
Remove the replace directive in `go.mod`. It does not apply on `go
install github.com/apricote/hcloud-upload-image` and is otherwise
covered by `go.work`.
2024-11-02 22:21:38 +01:00
renovate[bot]
489ece1798
chore(deps): update module github.com/hetznercloud/hcloud-go/v2 to v2.15.0 (#41) 2024-11-02 22:10:18 +01:00
4e24d83c7a
docs: add generated CLI help output to repo (#46)
Generate the help pages using `cobras` builtin functionality and commit
them to the repository. This gives users to ability to review the
options of `hcloud-upload-image` without having to install it first.
2024-11-02 21:57:53 +01:00
renovate[bot]
b181eebd38
chore(deps): update dependency golangci/golangci-lint to v1.61.0 (#43) 2024-11-02 21:56:18 +01:00
renovate[bot]
6d8d2a02df
chore(deps): update module github.com/apricote/hcloud-upload-image/hcloudimages to v0.3.0 (#40)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-23 17:57:15 +02:00
99d5396435
refactor: drop custom package in favor of hcloud-go (#39) 2024-06-23 14:49:33 +00:00
a07856317d
chore(main): release 0.3.0 (#35) 2024-06-23 16:28:07 +02:00
renovate[bot]
32a82ffc6f
chore(deps): update module golang.org/x/crypto to v0.24.0 (#28)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-23 14:27:41 +00:00
ebe08b345c
feat: update default x86 server type to cx22 (#38)
`cx11` is deprecated and will be removed in September.

Changelog:
https://docs.hetzner.cloud/changelog#2024-06-06-old-server-types-with-shared-intel-vcpus-are-deprecated
2024-06-23 14:25:58 +00:00
d921510af3
chore: fix goreleaser config file version (#37) 2024-06-23 14:25:23 +00:00
42eeb00a07
feat: set server type explicitly (#36)
- **CLI**: New flag `--server-type` that overrides the `--architecture`
flag and allows users to specify the server type they want
- **Lib**: New field in `UploadOptions`: `ServerType *hcloud.ServerType`
that overrides the `Architecture` field and allows users to specify the
server type they want

Closes #30
2024-06-23 16:21:14 +02:00
renovate[bot]
f244acdfaf
chore(deps): update goreleaser/goreleaser-action action to v6 (#29)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-23 14:20:14 +00:00
256989f4a3
fix: error early when the image write fails (#34)
Closes #33
2024-06-23 16:13:52 +02:00
renovate[bot]
8347e4ef16
chore(deps): update module github.com/hetznercloud/hcloud-go/v2 to v2.9.0 (#27)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-23 16:13:35 +02:00
renovate[bot]
63f17e9760
chore(deps): update dependency golangci/golangci-lint to v1.59.1 (#26)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-23 16:02:18 +02:00
renovate[bot]
1f3c2afee9
chore(deps): update module github.com/spf13/cobra to v1.8.1 (#32)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-23 16:01:46 +02:00
renovate[bot]
13b1e26093
chore(deps): update dependency golangci/golangci-lint to v1.58.2 (#25)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-22 12:03:52 +02:00
043c73cf7d
ci: properly tag versions of library (#23)
Fixes #22
2024-05-19 17:20:52 +02:00
caaa5435bb
docs: cli install (#21) 2024-05-10 18:01:39 +00:00
393a292596
chore(main): release 0.2.1 (#20)
🤖 I have created a release *beep* *boop*
---


##
[0.2.1](https://github.com/apricote/hcloud-upload-image/compare/v0.2.0...v0.2.1)
(2024-05-10)


### Bug Fixes

* **cli:** completion requires HCLOUD_TOKEN
([#19](https://github.com/apricote/hcloud-upload-image/issues/19))
([bb2ca48](bb2ca48200))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
2024-05-10 18:09:22 +02:00
bb2ca48200
fix(cli): completion requires HCLOUD_TOKEN (#19)
The current setup of the CLI requires the user to set HCLOUD_TOKEN for
every single invocation of the binary. Even if we just want to
autocomplete some arguments or even generate the completion scripts in
CI.

This fixes the bug by only initializing the hcloud-go client in the
"cleanup" and "upload" subcommands.
2024-05-10 18:06:38 +02:00
f7dc501b2f
chore(main): release 0.2.0 (#6)
🤖 I have created a release *beep* *boop*
---


##
[0.2.0](https://github.com/apricote/hcloud-upload-image/compare/v0.1.1...v0.2.0)
(2024-05-09)


### Features

* packaging for deb, rpm, apk, aur
([#17](https://github.com/apricote/hcloud-upload-image/issues/17))
([139761c](139761cc28))
* upload local disk images
([#15](https://github.com/apricote/hcloud-upload-image/issues/15))
([fcea3e3](fcea3e3c6e))
* upload xz compressed images
([#16](https://github.com/apricote/hcloud-upload-image/issues/16))
([1c943e4](1c943e4480))


### Bug Fixes

* update user-agent in CLI
([#5](https://github.com/apricote/hcloud-upload-image/issues/5))
([b17857c](b17857c1fe))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
2024-05-09 20:55:54 +02:00
renovate[bot]
1f70099302
chore(deps): update module golang.org/x/crypto to v0.23.0 (#12)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-09 18:40:48 +00:00
139761cc28
feat: packaging for deb, rpm, apk, aur (#17) 2024-05-09 20:38:26 +02:00
1c943e4480
feat: upload xz compressed images (#16)
Required for Talos images:
https://www.talos.dev/v1.7/talos-guides/install/cloud-platforms/hetzner/#rescue-mode
2024-05-09 19:15:54 +02:00
fcea3e3c6e
feat: upload local disk images (#15)
The new options/flag enables users to use a local file as the image,
instead of a publicly available file from a web server.
2024-05-09 16:16:37 +00:00
renovate[bot]
8e070f04ab
chore(deps): update dependency golangci/golangci-lint to v1.58.1 (#14)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-08 22:26:09 +02:00
renovate[bot]
841edff6a4
chore(deps): update golangci/golangci-lint-action action to v6 (#13)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-08 22:25:52 +02:00
renovate[bot]
1a37a300b6
chore(deps): update module github.com/hetznercloud/hcloud-go/v2 to v2.8.0 (#11)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-08 22:25:29 +02:00
renovate[bot]
2eea318379
chore(deps): update dependency golangci/golangci-lint to v1.58.0 (#8)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-05 01:14:16 +02:00
renovate[bot]
5300a596a2
chore(deps): update module google.golang.org/protobuf to v1.33.0 [security] (#7)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-05 01:13:59 +02:00
b17857c1fe
fix: update user-agent in CLI (#5) 2024-05-05 01:10:06 +02:00
d7cdf210d2 docs: update README 2024-05-05 01:06:38 +02:00
ede33388d2
chore(main): release 0.1.1 (#4) 2024-05-05 01:02:45 +02:00
f373d4c2ba
fix: CLI does not produce release binaries (#3) 2024-05-05 01:01:37 +02:00
415c47e3d1
chore(main): release 0.1.0 (#2) 2024-05-05 00:38:26 +02:00
2db1c01a62
chore: setup CI (#1) 2024-05-05 00:37:08 +02:00
ab668ce310 docs: update readme 2024-05-05 00:30:23 +02:00
847b696c74 feat(cli): docs grouping and version 2024-05-05 00:05:09 +02:00
d8e39159f0 docs: README 2024-05-04 23:56:58 +02:00
9e654521ae feat(cli): hide redundant log attributes 2024-05-04 23:45:58 +02:00
c9ab40b539 feat: documentation and cleanup command 2024-05-04 22:13:33 +02:00
27d4e3240e chore: add license info for code taken from other repos 2024-05-04 22:12:19 +02:00
d0729e1cb5 chore: cleanup before publishing 2024-05-02 22:12:29 +02:00
4b77b81689 refactor: change package names 2024-05-02 21:42:36 +02:00
62578ad5c5 refactor: yeet util/ subdirs 2024-05-02 21:18:20 +02:00
b6ae95f55b feat(cli): upload command 2024-05-02 20:19:25 +02:00