diff --git a/.ci/test.yml b/.ci/test.yml index 0775a19cce..ed1741d1ee 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 diff --git a/.circleci/config.yml b/.circleci/config.yml index 422f6fdc22..b8d34ff7bb 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