Compare commits
3 commits
fbe182580e
...
a0e39cde0c
Author | SHA1 | Date | |
---|---|---|---|
a0e39cde0c | |||
b49004e559 | |||
fb50716b29 |
2 changed files with 3 additions and 2 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
scaleway-delete-image
|
4
main.go
4
main.go
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue