-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
26 lines (22 loc) · 813 Bytes
/
.travis.yml
File metadata and controls
26 lines (22 loc) · 813 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
sudo: required
language: bash
install: true
services:
- docker
before_install:
- docker --version
- echo "ENV GIT_SHA ${TRAVIS_COMMIT}" >> Dockerfile
install:
- docker build -t ososystem/database:${TRAVIS_COMMIT} .
after_success:
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- docker push ososystem/database:${TRAVIS_COMMIT}
- docker tag ososystem/database:${TRAVIS_COMMIT} ososystem/database:latest
- docker push ososystem/database:latest
- wget https://raw.githubusercontent.com/k3rn31p4nic/travis-ci-discord-webhook/master/send.sh
- chmod +x send.sh
- ./send.sh success $WEBHOOK_URL
after_failure:
- wget https://raw.githubusercontent.com/k3rn31p4nic/travis-ci-discord-webhook/master/send.sh
- chmod +x send.sh
- ./send.sh failure $WEBHOOK_URL