Skip to content
This repository has been archived by the owner on Apr 4, 2023. It is now read-only.

Commit

Permalink
#39 create stable version of che-theia image
Browse files Browse the repository at this point in the history
Signed-off-by: Yevhen Vydolob <yvydolob@redhat.com>
  • Loading branch information
evidolob committed Feb 8, 2019
1 parent c7e5afd commit af779e9
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 14 deletions.
8 changes: 1 addition & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ cache:
- node_modules
branches:
only:
- master
- 0.3.19
env:
global:
- NODE_OPTIONS="--max_old_space_size=4096"
Expand All @@ -37,9 +37,3 @@ jobs:
before_deploy:
- printf "//registry.npmjs.org/:_authToken=${NPM_AUTH_TOKEN}\n" >> ~/.npmrc
- yarn
deploy:
- provider: script
script: yarn run publish:next
on:
branch: master
skip_cleanup: true
10 changes: 5 additions & 5 deletions build_and_push_docker_images.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ for image_dir in "${DOCKER_FILES_LOCATIONS[@]}"
do
if [ "$image_dir" == "dockerfiles/theia" ]; then
THEIA_IMAGE_TAG="$(awk '/ARG THEIA_VERSION=/{print $NF}' dockerfiles/theia/Dockerfile | cut -d '=' -f2)-nightly"
bash $(pwd)/$image_dir/build.sh --build-args:GITHUB_TOKEN=${GITHUB_TOKEN},THEIA_VERSION=master --branch:master --git-ref:refs\\/heads\\/master
bash $(pwd)/$image_dir/build.sh --build-args:GITHUB_TOKEN=${GITHUB_TOKEN},THEIA_VERSION=0.3.19 --branch:v0.3.19 --git-ref:refs\\/tags\\/v\$\{THEIA_VERSION\}
elif [ "$image_dir" == "dockerfiles/theia-dev" ]; then
bash $(pwd)/$image_dir/build.sh --build-arg:GITHUB_TOKEN=${GITHUB_TOKEN}
else
Expand All @@ -44,7 +44,7 @@ for image_dir in "${DOCKER_FILES_LOCATIONS[@]}"
done

#Push images only if build task scheduled by cron
if [ "$TRAVIS_EVENT_TYPE" == "cron" ]; then
#if [ "$TRAVIS_EVENT_TYPE" == "cron" ]; then
#PUSH IMAGES
#docker login -u ${DOCKER_USERNAME} -p ${DOCKER_PASSWORD}
echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
Expand All @@ -57,6 +57,6 @@ if [ "$TRAVIS_EVENT_TYPE" == "cron" ]; then
echo y | docker push ${image}:nightly
fi
done
else
echo "Skip push docker images.";
fi
#else
# echo "Skip push docker images.";
#fi
2 changes: 1 addition & 1 deletion che-plugins/che-editor-theia/etc/che-plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ endpoints:
discoverable: false
containers:
- name: theia-ide
image: eclipse/che-theia:0.3.18-nightly
image: eclipse/che-theia:0.3.19-nightly
env:
- name: THEIA_PLUGINS
value: local-dir:///plugins
Expand Down
2 changes: 1 addition & 1 deletion extensions/extensions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ extensions:
- extensions/eclipse-che-theia-plugin-ext
- extensions/eclipse-che-theia-terminal
- extensions/eclipse-che-theia-remote
checkoutTo: 0.0.4
checkoutTo: 0.3.19

0 comments on commit af779e9

Please sign in to comment.