-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
24 lines (24 loc) · 775 Bytes
/
.travis.yml
File metadata and controls
24 lines (24 loc) · 775 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
sudo: required
dist: bionic
language: csharp
mono: none
dotnet: 5.0
services: docker
before_install:
- cd RestWithASPNETUdemy/
- echo "We are in the right folder!"
script:
- docker-compose build
before_deploy:
- echo "$DOCKER_PASSWORD" | docker login --username "$DOCKER_USERNAME" --password---password-stdin
deploy:
provider: script
script:
docker tag rest-with-asp-net-udemy:lastest $DOCKER_USERNAME/rest-with-asp-net-udemy:$TRAVIS_JOB_ID;
docker tag rest-with-asp-net-udemy-db:lastest $DOCKER_USERNAME/rest-with-asp-net-udemy-db:$TRAVIS_JOB_ID;
docker push $DOCKER_USERNAME/rest-with-asp-net-udemy-:$TRAVIS_JOB_ID;
docker push $DOCKER_USERNAME/rest-with-asp-net-udemy-db$TRAVIS_JOB_ID;
on:
branch: master
notifications:
email: false