File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 2121 desc : Remove temporal folders
2222 cmds :
2323 - rm -rf ./plugin
24+
2425 rootfs :
2526 silent : true
2627 desc : Build the rootfs needed for the plugin
@@ -31,16 +32,25 @@ tasks:
3132 - docker export opsd-rootfs | tar -x -C ./plugin/rootfs
3233 - cp config.json ./plugin/
3334 - docker rm -vf opsd-rootfs
35+
3436 create :
3537 desc : Create Docker Plugin
3638 cmds :
3739 - docker plugin rm -f {{.PLUGIN_NAME}}:{{.PLUGIN_VERSION}} || true
3840 - docker plugin create {{.PLUGIN_NAME}}:{{.PLUGIN_VERSION}} ./plugin
41+
3942 disable :
4043 desc : Disable local plugin
4144 cmds :
4245 - docker plugin disable {{.PLUGIN_NAME}}:{{.PLUGIN_VERSION}} || true
46+
4347 enable :
4448 desc : Enable local plugin
4549 cmds :
4650 - docker plugin enable {{.PLUGIN_NAME}}:{{.PLUGIN_VERSION}}
51+ lint :
52+ desc : Lint the code
53+ cmds :
54+ - go vet ./...
55+ - go tool staticcheck ./...
56+ - go tool revive ./...
You can’t perform that action at this time.
0 commit comments