[message pusher] - add Dockerfile

This commit is contained in:
zeaslity
2024-04-23 15:39:53 +08:00
parent 9d09c793ad
commit 7b9e471c00
3 changed files with 17 additions and 2 deletions

View File

@@ -0,0 +1,11 @@
package cmii
// CmiiUpdateMessage message_pusher/cmii/CmiiMessage.go
type CmiiUpdateMessage struct {
Namespace string
AppName string
FromTag string
ToTag string
Replicas string
DeployStatus bool
}

View File

@@ -5,7 +5,6 @@ import (
"testing" "testing"
"time" "time"
"wdd.io/agent-common/assert" "wdd.io/agent-common/assert"
"wdd.io/agent-common/message_pusher"
"wdd.io/agent-common/utils" "wdd.io/agent-common/utils"
) )
@@ -285,7 +284,7 @@ func TestUpdateCmiiDeploymentImageTag(t *testing.T) {
assert.Equal(t, check, true, "deployment run failed!") assert.Equal(t, check, true, "deployment run failed!")
// push message // push message
message_pusher.PushCmiiUpdateMessage(cmiiEnv, appName, newTag, check)
} }
} }

View File

@@ -0,0 +1,5 @@
FROM golang:1.22-alpine3.19
COPY ./build/message_pusher /message_pusher
RUN /message_pusher