31 lines
679 B
Go
31 lines
679 B
Go
package unpacker
|
|
|
|
import (
|
|
"ocl/portainer-devtool/configs"
|
|
"ocl/portainer-devtool/tasks/common"
|
|
"ocl/portainer-devtool/utils"
|
|
)
|
|
|
|
type BuildDockerImageSubTask struct {
|
|
common.GeneralTask
|
|
}
|
|
|
|
func NewBuildDockerImageSubTask(cfg *configs.Config) *BuildDockerImageSubTask {
|
|
return &BuildDockerImageSubTask{
|
|
GeneralTask: *common.NewGeneralTask(cfg),
|
|
}
|
|
}
|
|
|
|
func (task *BuildDockerImageSubTask) Execute() error {
|
|
utils.SuccessPrint(`
|
|
docker image tag docker.io/portainer/compose-unpacker:latest oscarzhou/compose-unpacker:28
|
|
docker image push oscarzhou/compose-unpacker:28
|
|
`)
|
|
|
|
return nil
|
|
}
|
|
|
|
func (task *BuildDockerImageSubTask) String() string {
|
|
return "Build Docker Image"
|
|
}
|