feat: filled in more of pushToRegistry
This commit is contained in:
1 parent
6480957c4f
commit
93f819609e
1 file changed
+7
-7
@@ -46,16 +46,16 @@ func incrementTagVersion(appName string) (string, error) {
|
|||||||
return strconv.Itoa(version), nil
|
return strconv.Itoa(version), nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func pushToRegistry(appName string, imageTag string) error {
|
func pushToRegistry(appName string, tag string) error {
|
||||||
common.LogVerboseQuiet("Retrieving image info for app")
|
common.LogVerboseQuiet("Retrieving image info for app")
|
||||||
|
|
||||||
// DOKKU_REGISTRY_SERVER=$(fn-registry-remote-repository "$APP")
|
registryServer := getRegistryServerForApp(appName)
|
||||||
// IMAGE_REPO=$(fn-registry-image-repo "$APP")
|
imageRepo := reportComputedImageRepo(appName)
|
||||||
// IMAGE_TAG="$(get_running_image_tag "$APP")"
|
imageTag, _ := common.GetRunningImageTag(appName)
|
||||||
// IMAGE=$(get_app_image_name "$APP" "$IMAGE_TAG")
|
image := common.GetAppImageName(appName, imageTag, "")
|
||||||
// IMAGE_ID=$(docker inspect --format '{{ .Id }}' "$IMAGE")
|
imageID, _ := common.DockerInspect(image, "{{ .Id }}")
|
||||||
|
|
||||||
// dokku_log_verbose_quiet "Tagging $IMAGE_REPO:$TAG in registry format"
|
common.LogVerboseQuiet(fmt.Sprintf("Tagging $IMAGE_REPO:%s in registry format", tag))
|
||||||
// docker tag "$IMAGE_ID" "${DOKKU_REGISTRY_SERVER}${IMAGE_REPO}:${TAG}"
|
// docker tag "$IMAGE_ID" "${DOKKU_REGISTRY_SERVER}${IMAGE_REPO}:${TAG}"
|
||||||
// docker tag "$IMAGE_ID" "${IMAGE_REPO}:${TAG}"
|
// docker tag "$IMAGE_ID" "${IMAGE_REPO}:${TAG}"
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user