mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
updated travis build
This commit is contained in:
parent
f33c988ba2
commit
7a9d2823cc
16
.travis.yml
16
.travis.yml
@ -7,23 +7,21 @@ cache:
|
|||||||
yarn: true
|
yarn: true
|
||||||
directories:
|
directories:
|
||||||
- node_modules
|
- node_modules
|
||||||
# install
|
|
||||||
# nothing
|
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- docker build --build-arg BUILD_COMMIT=$TRAVIS_COMMIT -t humanconnection/nitro-webapp .
|
- docker build --build-arg BUILD_COMMIT=$TRAVIS_COMMIT -t humanconnection/nitro-web .
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- docker run humanconnection/nitro-webapp yarn run lint
|
- docker run humanconnection/nitro-web yarn run lint
|
||||||
|
|
||||||
after_success:
|
after_success:
|
||||||
- wget https://raw.githubusercontent.com/DiscordHooks/travis-ci-discord-webhook/master/send.sh
|
# - wget https://raw.githubusercontent.com/DiscordHooks/travis-ci-discord-webhook/master/send.sh
|
||||||
- chmod +x send.sh
|
# - chmod +x send.sh
|
||||||
- ./send.sh success $WEBHOOK_URL
|
# - ./send.sh success $WEBHOOK_URL
|
||||||
- if [ $TRAVIS_BRANCH == "master" ] && [ $TRAVIS_EVENT_TYPE == "push" ]; then
|
- if [ $TRAVIS_BRANCH == "master" ] && [ $TRAVIS_EVENT_TYPE == "push" ]; then
|
||||||
docker login -u "$DOCKER_USERNAME" -p "$DOCKER_PASSWORD";
|
docker login -u "$DOCKER_USERNAME" -p "$DOCKER_PASSWORD";
|
||||||
docker tag humanconnection/nitro-webapp humanconnection/nitro-webapp:latest;
|
docker tag humanconnection/nitro-web humanconnection/nitro-web:latest;
|
||||||
docker push humanconnection/nitro-webapp:latest;
|
docker push humanconnection/nitro-web:latest;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
after_failure:
|
after_failure:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user