From e8b784c93b8022bedf2f1b11b84e8e049ba56a09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Acid=20Chicken=20=28=E7=A1=AB=E9=85=B8=E9=B6=8F=29?= Date: Wed, 31 Oct 2018 22:00:21 +0900 Subject: [PATCH 1/2] Update config.yml (#3051) --- .circleci/config.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 422f6fdc2..b8d34ff7b 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -97,14 +97,22 @@ jobs: - run: name: Build command: | - docker build . + docker build . | tee docker.log + tail -n 1 docker.log | read __Successfully __built tag - when: condition: <> steps: - run: name: Deploy command: | - docker login -u $DOCKERHUB_USERNAME -p $DOCKERHUB_PASSWORD && docker push misskey/misskey + if [ "$DOCKERHUB_USERNAME$DOCKERHUB_PASSWORD" ] + then + docker tag $tag misskey/misskey + docker login -u $DOCKERHUB_USERNAME -p $DOCKERHUB_PASSWORD + docker push misskey/misskey + else + echo -e '\033[0;33mAborted deploying to Docker Hub\033[0;39m' + fi workflows: version: 2 From 2b95669a29c0bb06b56da0cd16c5e84dcf11d93d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Acid=20Chicken=20=28=E7=A1=AB=E9=85=B8=E9=B6=8F=29?= Date: Wed, 31 Oct 2018 22:07:26 +0900 Subject: [PATCH 2/2] Update test.yml (#3052) --- .ci/test.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.ci/test.yml b/.ci/test.yml index 0775a19cc..ed1741d1e 100644 --- a/.ci/test.yml +++ b/.ci/test.yml @@ -9,6 +9,7 @@ mongodb: db: test-misskey user: admin pass: '' +# __REDIS__ redis: host: localhost port: 6379