CIでDockerイメージのpushが正しく行われるよう修正 (#6990)
* fix docker command on CI to push the image tagged with the version * fix docker cli version on CI for future-proofing
This commit is contained in:
parent
1e1ac13999
commit
62b680cadd
|
@ -4,7 +4,7 @@ executors:
|
||||||
docker:
|
docker:
|
||||||
working_directory: /tmp/workspace
|
working_directory: /tmp/workspace
|
||||||
docker:
|
docker:
|
||||||
- image: docker:latest
|
- image: docker:12.10.1
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
docker:
|
docker:
|
||||||
|
@ -32,7 +32,7 @@ jobs:
|
||||||
apk update && apk add jq
|
apk update && apk add jq
|
||||||
docker tag misskey/misskey misskey/misskey:$(cat package.json | jq -r .version)
|
docker tag misskey/misskey misskey/misskey:$(cat package.json | jq -r .version)
|
||||||
docker login -u $DOCKERHUB_USERNAME -p $DOCKERHUB_PASSWORD
|
docker login -u $DOCKERHUB_USERNAME -p $DOCKERHUB_PASSWORD
|
||||||
docker push misskey/misskey
|
docker push -a misskey/misskey
|
||||||
else
|
else
|
||||||
echo -e '\033[0;33mAborted deploying to Docker Hub\033[0;39m'
|
echo -e '\033[0;33mAborted deploying to Docker Hub\033[0;39m'
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue