Fix deploy fails on CircleCI

This commit is contained in:
Acid Chicken (硫酸鶏) 2018-11-07 02:06:32 +09:00 committed by GitHub
parent c052028fc3
commit 8c68992594
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -102,7 +102,7 @@ jobs:
- run: - run:
name: Build name: Build
command: | command: |
docker build . | tee docker.log docker build -t misskey/misskey .
- when: - when:
condition: <<parameters.with_deploy>> condition: <<parameters.with_deploy>>
steps: steps:
@ -111,8 +111,6 @@ jobs:
command: | command: |
if [ "$DOCKERHUB_USERNAME$DOCKERHUB_PASSWORD" ] if [ "$DOCKERHUB_USERNAME$DOCKERHUB_PASSWORD" ]
then then
tail -n 1 docker.log | read __Successfully __built tag
docker tag $tag misskey/misskey
docker login -u $DOCKERHUB_USERNAME -p $DOCKERHUB_PASSWORD docker login -u $DOCKERHUB_USERNAME -p $DOCKERHUB_PASSWORD
docker push misskey/misskey docker push misskey/misskey
else else