diff --git a/go/repositories/unpacker/build_docker_image.go b/go/repositories/unpacker/build_docker_image.go new file mode 100644 index 0000000..38e7501 --- /dev/null +++ b/go/repositories/unpacker/build_docker_image.go @@ -0,0 +1,30 @@ +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" +}