Browse Source

Makefile: add push for storage-initializer image

Signed-off-by: llhuii <liulinghui@huawei.com>
tags/v0.2.0^2
llhuii 4 years ago
parent
commit
95f6432a0c
3 changed files with 26 additions and 3 deletions
  1. +4
    -2
      Makefile
  2. +2
    -1
      scripts/storage-initializer/build_image.sh
  3. +20
    -0
      scripts/storage-initializer/push_image.sh

+ 4
- 2
Makefile View File

@@ -131,17 +131,19 @@ images: gmimage lcimage
gmimage lcimage: gmimage lcimage:
docker build --build-arg GO_LDFLAGS=${GO_LDFLAGS} -t ${IMAGE_REPO}/sedna-${@:image=}:${IMAGE_TAG} -f build/${@:image=}/Dockerfile . docker build --build-arg GO_LDFLAGS=${GO_LDFLAGS} -t ${IMAGE_REPO}/sedna-${@:image=}:${IMAGE_TAG} -f build/${@:image=}/Dockerfile .



.PHONY: push push-examples push-all .PHONY: push push-examples push-all
push-all: push push-examples push-all: push push-examples

# push target pushes sedna-built images
push: images push: images
docker push ${IMAGE_REPO}/sedna-gm:${IMAGE_TAG} docker push ${IMAGE_REPO}/sedna-gm:${IMAGE_TAG}
docker push ${IMAGE_REPO}/sedna-lc:${IMAGE_TAG} docker push ${IMAGE_REPO}/sedna-lc:${IMAGE_TAG}
bash scripts/storage-initializer/push_image.sh


push-examples: push-examples:
bash examples/push_image.sh bash examples/push_image.sh




.PHONE: e2e .PHONE: e2e
e2e: e2e:
hack/run-e2e.sh hack/run-e2e.sh


+ 2
- 1
scripts/storage-initializer/build_image.sh View File

@@ -20,5 +20,6 @@ IMAGE_REPO=${IMAGE_REPO:-kubeedge}
IMAGE_TAG=${IMAGE_TAG:-v0.2.0} IMAGE_TAG=${IMAGE_TAG:-v0.2.0}


REPO_PREFIX=${IMAGE_REPO}/sedna-storage-initializer REPO_PREFIX=${IMAGE_REPO}/sedna-storage-initializer
IMAGE=${REPO_PREFIX}:${IMAGE_TAG}


docker build -t ${REPO_PREFIX}:${IMAGE_TAG} --label sedna=scripts .
docker build -t $IMAGE --label sedna=scripts .

+ 20
- 0
scripts/storage-initializer/push_image.sh View File

@@ -0,0 +1,20 @@
#!/bin/bash

# Copyright 2021 The KubeEdge Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

cd "$(dirname "${BASH_SOURCE[0]}")"

source build_image.sh
docker push $IMAGE

Loading…
Cancel
Save