Skip to content
This repository was archived by the owner on Feb 22, 2024. It is now read-only.

Commit 8e63548

Browse files
Merge pull request #2 from binary-com/master
Master
2 parents 6e4d192 + 8b578dc commit 8e63548

File tree

27 files changed

+619
-113
lines changed

27 files changed

+619
-113
lines changed

.circleci/config.yml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -94,17 +94,14 @@ commands:
9494
- run:
9595
name: Building docker image for << parameters.target >>
9696
command: |
97-
build_tag="${CIRCLE_SHA1}"
98-
[ "<< parameters.target >>" == "beta" ] && build_tag="beta-${CIRCLE_SHA1}"
99-
docker build -t ${DOCKHUB_ORGANISATION}/binary-static-bot:${build_tag} -t ${DOCKHUB_ORGANISATION}/binary-static-bot:latest .
97+
build_latest="latest"
98+
[ "<< parameters.target >>" == "beta" ] && build_latest="beta-latest"
99+
docker build -t ${DOCKHUB_ORGANISATION}/binary-static-bot:${CIRCLE_TAG} -t ${DOCKHUB_ORGANISATION}/binary-static-bot:${build_latest} .
100100
- run:
101101
name: Pushing Image to docker hub
102102
command: |
103-
build_tag="${CIRCLE_SHA1}"
104-
[ "<< parameters.target >>" == "beta" ] && build_tag="beta-${CIRCLE_SHA1}"
105103
echo $DOCKERHUB_PASSWORD | docker login -u $DOCKERHUB_USERNAME --password-stdin
106-
docker push ${DOCKHUB_ORGANISATION}/binary-static-bot:${build_tag}
107-
docker push ${DOCKHUB_ORGANISATION}/binary-static-bot:latest
104+
docker push ${DOCKHUB_ORGANISATION}/binary-static-bot
108105
k8s_deploy:
109106
description: "Deploy to k8s cluster"
110107
parameters:
@@ -126,11 +123,10 @@ commands:
126123
CA_CRT="${!CA_CRT_REF}"
127124
KUBE_SERVER="${!KUBE_SERVER_REF}"
128125
SERVICEACCOUNT_TOKEN="${!SERVICEACCOUNT_TOKEN_REF}"
129-
build_tag="${CIRCLE_SHA1}"
130126
deployment_target="bot-binary-com"
131-
[ "<< parameters.target >>" == "beta" ] && build_tag="beta-${CIRCLE_SHA1}" && deployment_target="bot-beta-binary-com"
127+
[ "<< parameters.target >>" == "beta" ] && deployment_target="bot-beta-binary-com"
132128
echo $CA_CRT | base64 --decode > ca.crt
133-
kubectl --server=${KUBE_SERVER} --certificate-authority=ca.crt --token=$SERVICEACCOUNT_TOKEN set image deployment/${deployment_target} ${deployment_target}=${DOCKHUB_ORGANISATION}/binary-static-bot:${build_tag}
129+
kubectl --server=${KUBE_SERVER} --certificate-authority=ca.crt --token=$SERVICEACCOUNT_TOKEN set image deployment/${deployment_target} ${deployment_target}=${DOCKHUB_ORGANISATION}/binary-static-bot:${CIRCLE_TAG}
134130
fi
135131
done
136132

gulp/i18n.js

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,7 @@ const customTransform = function _transform(file, enc, done) {
4848
done();
4949
};
5050

51-
gulp.task(
52-
'clean-i18n',
53-
gulp.series(() => gulp.src(['src/common/translations/en/*']).pipe(paths(del)))
54-
);
51+
gulp.task('clean-i18n', gulp.series(() => gulp.src(['src/common/translations/en/*']).pipe(paths(del))));
5552

5653
gulp.task(
5754
'i18n-xml',
@@ -86,13 +83,10 @@ gulp.task(
8683
gulp.task(
8784
'pull-blockly-translations',
8885
gulp.series(done => {
89-
const blocklyLanguages = ['en', 'de', 'it', 'vi', 'pl', 'ru', 'pt', 'es', 'fr', 'zh-hans', 'zh-hant'];
90-
remoteSrc(
91-
blocklyLanguages.map(lang => `${lang}.js?_=${Date.now()}`),
92-
{
93-
base: 'https://blockly-demo.appspot.com/static/msg/js/',
94-
}
95-
)
86+
const blocklyLanguages = ['en', 'de', 'id', 'it', 'vi', 'pl', 'ru', 'pt', 'es', 'fr', 'zh-hans', 'zh-hant'];
87+
remoteSrc(blocklyLanguages.map(lang => `${lang}.js?_=${Date.now()}`), {
88+
base: 'https://blockly-demo.appspot.com/static/msg/js/',
89+
})
9690
.pipe(rename(path => (path.extname = '.js')))
9791
.pipe(gulp.dest('www/translations'));
9892
done();

0 commit comments

Comments
 (0)