Update CircleCI configuration (#3163)

* Update config.yml

* Update config.yml
This commit is contained in:
Acid Chicken (硫酸鶏) 2018-11-08 18:49:45 +09:00 committed by syuilo
parent 480d1c9f09
commit 21303bd06a

View File

@ -1,11 +1,5 @@
version: 2.1 version: 2.1
general:
branches:
ignore:
- l10n_develop
- imgbot
executors: executors:
default: default:
working_directory: /tmp/workspace working_directory: /tmp/workspace
@ -17,8 +11,20 @@ executors:
working_directory: /tmp/workspace working_directory: /tmp/workspace
docker: docker:
- image: docker:latest - image: docker:latest
alpine:
working_directory: /tmp/workspace
docker:
- image: alpine:latest
jobs: jobs:
ok:
executor: alpine
steps:
- run:
name: OK
command: |
echo -e '\033[0;32mOK\033[0;39m'
build: build:
executor: default executor: default
steps: steps:
@ -111,6 +117,9 @@ jobs:
command: | command: |
if [ "$DOCKERHUB_USERNAME$DOCKERHUB_PASSWORD" ] if [ "$DOCKERHUB_USERNAME$DOCKERHUB_PASSWORD" ]
then then
curl -LSs 'https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64' > jq
chmod +x jq
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 misskey/misskey
else else
@ -121,10 +130,27 @@ workflows:
version: 2 version: 2
build-and-test: build-and-test:
jobs: jobs:
- build - ok:
filters:
branches:
only:
- l10n_develop
- imgbot
- build:
filters:
branches:
ignore:
- l10n_develop
- imgbot
- test: - test:
requires: requires:
- build - build
filters:
branches:
ignore:
# - master
- l10n_develop
- imgbot
- test: - test:
without_redis: "true" without_redis: "true"
requires: requires: