Skip to content

Commit

Permalink
support to specify image-tag (#3638) (#3642)
Browse files Browse the repository at this point in the history
Co-authored-by: luobily <[email protected]>
  • Loading branch information
erda-bot and luobily authored Jan 6, 2022
1 parent 5a8fb2e commit aba3ce7
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 7 deletions.
3 changes: 0 additions & 3 deletions .erda/pipelines/ci-build-ce.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ stages:
- mkdir -p extensions
- cp -r ${{ dirs.erda-actions }} extensions
- cp -r ${{ dirs.erda-addons }} extensions
- export VERSION=${{ outputs.extract-repo-version.version }}
- export ERDA_VERSION=${{ outputs.extract-repo-version.major_minor_version }}
- make prepare
- make build-push-all
Expand All @@ -53,7 +52,6 @@ stages:
alias: build-agent
commands:
- cd ${{ dirs.erda }}
- export VERSION=${{ outputs.extract-repo-version.version }}
- export ERDA_VERSION=${{ outputs.extract-repo-version.major_minor_version }}
- MODULE_PATH=cluster-agent make build-push-image
loop:
Expand All @@ -70,7 +68,6 @@ stages:
- release:
alias: release-erda
params:
tag_version: ${{ outputs.extract-repo-version.version }}
check_diceyml: false
cross_cluster: "true"
dice_yml: ${{ dirs.erda }}/erda.yml
Expand Down
2 changes: 1 addition & 1 deletion build/scripts/docker_image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ cd $(git rev-parse --show-toplevel)

# image version and url
VERSION="$(build/scripts/make-version.sh)"
IMAGE_TAG="$(build/scripts/make-version.sh tag)"
IMAGE_TAG="${IMAGE_TAG:-$(build/scripts/make-version.sh tag)}"
DOCKERFILE_DEFAULT="build/dockerfiles/Dockerfile"
BASE_DOCKER_IMAGE="$(build/scripts/base_image.sh image)"
DOCKERFILE=${DOCKERFILE_DEFAULT}
Expand Down
3 changes: 0 additions & 3 deletions pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ stages:
- mkdir -p extensions
- cp -r ${{ dirs.erda-actions }} extensions
- cp -r ${{ dirs.erda-addons }} extensions
- export VERSION=${{ outputs.extract-repo-version.version }}
- export ERDA_VERSION=${{ outputs.extract-repo-version.major_minor_version }}
- make prepare
- make build-push-all
Expand All @@ -72,7 +71,6 @@ stages:
- cp -r ${{ dirs.erda-addons }} extensions
- cp -r ${{ dirs.erda-actions-enterprise }} extensions
- cp -r ${{ dirs.erda-addons-enterprise }} extensions
- export VERSION=${{ outputs.extract-repo-version.version }}
- export ERDA_VERSION=${{ outputs.extract-repo-version.major_minor_version }}
- make prepare
- make build-push-image MODULE_PATH=dicehub
Expand All @@ -90,7 +88,6 @@ stages:
alias: build-agent
commands:
- cd ${{ dirs.erda }}
- export VERSION=${{ outputs.extract-repo-version.version }}
- export ERDA_VERSION=${{ outputs.extract-repo-version.major_minor_version }}
- MODULE_PATH=cluster-agent make build-push-image
loop:
Expand Down

0 comments on commit aba3ce7

Please sign in to comment.