1
1
mirror of https://github.com/kokonect-link/cherrypick synced 2024-11-25 15:46:33 +09:00

Update config.yml (#3051)

This commit is contained in:
Acid Chicken (硫酸鶏) 2018-10-31 22:00:21 +09:00 committed by syuilo
parent 008d950a39
commit 7e2009f408

View File

@ -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: <<parameters.with_deploy>>
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