mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
See these commits: 5eae8a89785798519aec66fb708389f6e5ea0327 1b8edc22ff8b900c45486b815a8c9d4465e7edb7
47 lines
1.3 KiB
YAML
47 lines
1.3 KiB
YAML
language: node_js
|
|
node_js:
|
|
- "10"
|
|
services:
|
|
- docker
|
|
cache:
|
|
yarn: true
|
|
directories:
|
|
- node_modules
|
|
|
|
install:
|
|
- docker build --build-arg BUILD_COMMIT=$TRAVIS_COMMIT -t humanconnection/nitro-web .
|
|
|
|
script:
|
|
- docker run humanconnection/nitro-web yarn run lint
|
|
|
|
after_success:
|
|
# - wget https://raw.githubusercontent.com/DiscordHooks/travis-ci-discord-webhook/master/send.sh
|
|
# - chmod +x send.sh
|
|
# - ./send.sh success $WEBHOOK_URL
|
|
- if [ $TRAVIS_BRANCH == "master" ] && [ $TRAVIS_EVENT_TYPE == "push" ]; then
|
|
docker login -u "$DOCKER_USERNAME" -p "$DOCKER_PASSWORD";
|
|
docker tag humanconnection/nitro-web humanconnection/nitro-web:latest;
|
|
docker push humanconnection/nitro-web:latest;
|
|
fi
|
|
|
|
after_failure:
|
|
- wget https://raw.githubusercontent.com/DiscordHooks/travis-ci-discord-webhook/master/send.sh
|
|
- chmod +x send.sh
|
|
- ./send.sh failure $WEBHOOK_URL
|
|
|
|
deploy:
|
|
- provider: script
|
|
script: scripts/deploy.sh nitro.human-connection.org
|
|
on:
|
|
branch: master
|
|
tags: true
|
|
- provider: script
|
|
script: scripts/deploy.sh nitro-staging.human-connection.org
|
|
on:
|
|
branch: master
|
|
- provider: script
|
|
script: scripts/deploy.sh "nitro-$(git rev-parse --short HEAD).human-connection.org"
|
|
on:
|
|
tags: true
|
|
all_branches: true
|