-
Notifications
You must be signed in to change notification settings - Fork 44
/
.travis.yml
41 lines (39 loc) · 1.96 KB
/
.travis.yml
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
language: php
php:
- "7.4"
script:
- php -v
- composer self-update
- composer global require phpstan/phpstan
- composer install
- composer analyze
cache:
directories:
- "$HOME/.composer/cache"
before_deploy:
#- openssl aes-256-cbc -K $encrypted_8c755eb21658_key -iv $encrypted_8c755eb21658_iv -in travis.enc -out ~/.ssh/travis -d
#- chmod 600 ~/.ssh/travis
- composer self-update
- composer install --no-dev --no-interaction --ignore-platform-reqs
- zip -r --exclude='*.git*' --exclude='*.zip' --exclude='*.travis.yml' TAnt_Full.zip .
- export DOCKER_CLI_EXPERIMENTAL=enabled
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- cp .env.example .env
- chmod -R 777 runtime
- docker build -t xiaodi93/ant-design-admin:latest -f docker/Dockerfile .
- docker push xiaodi93/ant-design-admin:latest
#- scp -i ~/.ssh/travis deploy.yml root@47.56.158.125:server/tant_admin_deploy.yml
#- ssh -i ~/.ssh/travis root@47.56.158.125 "docker stack deploy -c server/tant_admin_deploy.yml tant_admin"
addons:
ssh_known_hosts: 47.56.158.125
deploy:
provider: releases
api_key:
secure: rMCKulorfzZakJZtfjVLeuwG2x4G+cu+SgCLypL9CJDAYnE9RWMEL1sBFqcXdu45HchMh3SxlK/Vshg1KlHOvRSr6N21EvAAvdg45n47tT1kUJO41H2zFfl3r1WaQlZA/ZgEcCtBsEgnzDvhNEecIGGuXK7NYfFNbz6g3VyrbMruunx3I0FrzyxCO5uU8Urk5P6q1ElQT1jS2MpyMod/XdVgDEesN1MTX5hVcfVTquF0qBoUqNx3Kau6EweTKXsmLmiw1UxNPYbBKKIQ8tj+51aZHMulsKTIuHAdTIE/KplRpgITU9WYyGN6kKIn6tWWkt8Ti90yo9bh4PrCgs8K8ZHOqzGbIBMpAdj9PFOSS10/jRvqez4TjfCcWRnINupIQygpL1uHKzVyfidJ/eyPfBa0KkCKJimDH2Fp2yJdD0YgzV50vHCcuYwihuOD58UurL2HaxdwjnoIElDv38jaHl6NESvPp0kZzXnYqLEVmmP36LzBWB+TZD79EC9RLMd/5zrtkpeIiAaLVNjegcIcZSfjCy3TRGI1KcOpynZdqBAS4d9kKirycSeefoVKi9j7Av/KqZlyq34vT6gNyvdPD1X5UrUPcUiIdx5zBF/Bpm9bk2sWeONh5f18nots7BYyBmPEHmcbvzSLxLfCxFe6qOc2gU8TEIS+xeZcsrIeeP0=
file:
- "/home/travis/build/edenleung/think-admin/TAnt_Full.zip"
skip_cleanup: true
overwrite: true
on:
repo: edenleung/think-admin
tags: true