代码拉取完成,页面将自动刷新
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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。