Compare commits

...

3 Commits

Author SHA1 Message Date
Augusto Dwenger J. a0e39cde0c Add gitignore
ci/woodpecker/push/oci-image-build Pipeline was successful Details
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{
Name: "tag",
Usage: "The tag that should be deleted",
EnvVars: []string{"PLUGIN_IMAGE_NAME"},
EnvVars: []string{"PLUGIN_TAG"},
Destination: &p.Settings.Tag,
},
&cli.StringFlag{
@ -155,7 +155,7 @@ func getImageId(region, imageName, token string) (string, error) {
}
type TagsResponse struct {
Tags []Tag `json:"tag"`
Tags []Tag `json:"tags"`
}
type Tag struct {