Compare commits

...

3 commits

Author SHA1 Message Date
Augusto Dwenger J. a0e39cde0c Add gitignore
All checks were successful
ci/woodpecker/push/oci-image-build Pipeline was successful
2024-03-10 15:46:57 +01:00
Augusto Dwenger J. b49004e559 Fix TagsResponse field deserialisation 2024-03-10 15:45:59 +01:00
Augusto Dwenger J. fb50716b29 Fix tag flag env var 2024-03-10 15:32:47 +01:00
2 changed files with 3 additions and 2 deletions

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
scaleway-delete-image

View file

@ -42,7 +42,7 @@ func (p *Plugin) Flags() []cli.Flag {
&cli.StringFlag{ &cli.StringFlag{
Name: "tag", Name: "tag",
Usage: "The tag that should be deleted", Usage: "The tag that should be deleted",
EnvVars: []string{"PLUGIN_IMAGE_NAME"}, EnvVars: []string{"PLUGIN_TAG"},
Destination: &p.Settings.Tag, Destination: &p.Settings.Tag,
}, },
&cli.StringFlag{ &cli.StringFlag{
@ -155,7 +155,7 @@ func getImageId(region, imageName, token string) (string, error) {
} }
type TagsResponse struct { type TagsResponse struct {
Tags []Tag `json:"tag"` Tags []Tag `json:"tags"`
} }
type Tag struct { type Tag struct {