Skip to content

Commit

Permalink
upgrad node 16 version and change workflow logic which after test suc…
Browse files Browse the repository at this point in the history
…cess the rest step will run
  • Loading branch information
Young Yang committed Oct 27, 2022
1 parent 3891a5a commit a47cea5
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ jobs:
name: "build Java 17 & Node 16 image"
command: |
MBT_VERSION=$(cat ./VERSION)
sh $PWD/scripts/build_image 17 16.17.1 ${MBT_VERSION}
sh $PWD/scripts/build_image 17 16.18.0 ${MBT_VERSION}
- run:
name: publish image
command: |
Expand All @@ -173,11 +173,11 @@ jobs:
echo "Image release: ${MBT_VERSION}"
#Push to Docker Hub
echo "$DOCKER_HUB_TOKEN" | docker login --username $DOCKER_HUB_USER --password-stdin
sh $PWD/scripts/publish_image 17 16.17.1 ${MBT_VERSION} "devxci"
sh $PWD/scripts/publish_image 17 16.18.0 ${MBT_VERSION} "devxci"
#Push to GitHub Container Registry
echo "$CLOUD_MTA_BOT_GITHUB_TOKEN" | docker login "ghcr.io" --username $CLOUD_MTA_BOT_USER --password-stdin
sh $PWD/scripts/publish_image 17 16.17.1 ${MBT_VERSION} "ghcr.io/sap"
sh $PWD/scripts/publish_image 17 16.18.0 ${MBT_VERSION} "ghcr.io/sap"
publish-to-npm:
docker:
Expand Down Expand Up @@ -211,6 +211,7 @@ jobs:
workflows:
version: 2
# when sub-branch's code is commited, this workflow will be execed
on_pr_build:
jobs:
- build:
Expand All @@ -232,6 +233,8 @@ workflows:
branches:
ignore: master

# when master's code is commited or merged from sub-branch, build, compliance and test will be execed
# when sub-branch's code is commited, build-node will be execed
on_merge_build_test:
jobs:
- build:
Expand All @@ -253,6 +256,7 @@ workflows:
branches:
only: master

# when a branch is taged by "release", this workflow will be execed
on_tag_build_release_publish:
jobs:
- build:
Expand All @@ -271,15 +275,15 @@ workflows:
ignore: /.*/
- ghpages:
requires:
- build
- test
filters:
tags:
only: /release/
branches:
ignore: /.*/
- release-to-github:
requires:
- build
- test
filters:
tags:
only: /release/
Expand Down

0 comments on commit a47cea5

Please sign in to comment.