当前仓库属于暂停状态,部分功能使用受限,详情请查阅 仓库状态说明
1 Star 0 Fork 11

jenarlion/lnmp
暂停

forked from khs1994-docker/lnmp 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
.travis.yml 24.10 KB
一键复制 编辑 原始数据 按行查看 历史
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629
version: ~> 1.0
language: bash
# dist: trusty # 14.04
# dist: xenial # 16.04
# dist: bionic # 18.04
dist: focal # 20.04
services:
- docker
env:
global:
# - DOCKER_COMPOSE_VERSION=1.22.0
- TZ=Asia/Shanghai
- GOPATH=/home/travis/go
- PATH=/home/travis/go/bin:$PATH
# - LNMP_PATH=/home/travis/build/khs1994-docker/lnmp
- LNMP_BRANCH=20.10
# jobs:
# include:
# # - os: windows
# # dist: 1803-containers
# - os: linux
# dist: xenial
before_install:
- uname -a
# remove some apt source
- cat /etc/apt/sources.list
- ls /etc/apt/sources.list.d || true
- sudo rm -rf /etc/apt/sources.list.d/pgdg.list || true
- date
- docker --version
- curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
- sudo add-apt-repository "deb [arch=$(go env GOARCH)] https://download.docker.com/linux/ubuntu $(lsb_release -cs) test"
- sudo apt-get update
# - sudo apt-get -y install docker-ce || sudo apt -f install
# https://download.docker.com/linux/ubuntu/dists/xenial/pool/stable/amd64/
- apt-cache madison docker-ce | grep ${LNMP_BRANCH}
- DOCKER_VERSION=$(apt-cache madison docker-ce | grep ${LNMP_BRANCH} | head -n 1 | cut -d "|" -f 2 | sed s/[[:space:]]//g)
- echo ${DOCKER_VERSION}
- sudo apt-get -y install docker-ce=${DOCKER_VERSION} docker-ce-cli=${DOCKER_VERSION}
- sudo cat /etc/docker/daemon.json || true
- cat /etc/resolv.conf
- docker version
- docker info
# 升级最新 Docker Compose
# - docker-compose --version
# - sudo rm /usr/local/bin/docker-compose
# - curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION:-1.20.1}/docker-compose-`uname -s`-`uname -m` > docker-compose
# - sudo install -m755 docker-compose /usr/local/bin
# - docker-compose --version
# 部署公钥
- openssl aes-256-cbc -K $encrypted_70ae0c965114_key -iv $encrypted_70ae0c965114_iv -in cli/khs1994-robot.enc -out ~/.ssh/id_rsa -d
- chmod 600 ~/.ssh/id_rsa
# git config
- git config --global user.name "khs1994-merge-robot"
- git config --global user.email "ai@khs1994.com"
# verify version
- docker --version
- docker-compose --version || true
# docker login
- echo ${DOCKER_PASSWORD} | docker login -u ${DOCKER_USERNAME} --password-stdin
# github release
# - sudo apt update ; sudo apt install -y golang
- go get github.com/aktau/github-release
- github-release --help
jobs:
include:
# - stage: docs
# script:
# - cd docs
# - docker run -it --rm -v $PWD:/srv/gitbook-src khs1994/gitbook
# - sudo touch _book/CNAME
# - sudo echo "docs.lnmp.khs1994.com" | sudo tee _book/CNAME
# deploy:
# provider: pages
# repo: khs1994-docker/lnmp-docs
# skip-cleanup: true
# local-dir: docs/_book
# keep-history: true
# github-token: $GITHUB_TOKEN
# on:
# branch:
# - master
# - 20.10
- stage: tag
script: |
github-release info -u khs1994-docker -r lnmp -t ${TRAVIS_TAG} || \
cat CHANGELOG.md | github-release release -u khs1994-docker -r lnmp -t ${TRAVIS_TAG} --draft -d -
- &development
stage: development
before_script:
- sudo rm -rf /usr/local/bin/docker-compose
- ./lnmp-docker compose --official -f
script:
- ./lnmp-docker services
- ./lnmp-docker config > docker-compose.yml
- docker-compose config -q
- docker-compose up -d $(./lnmp-docker services)
- sleep 20
- docker ps -a
- curl 127.0.0.1
- ./lnmp-docker down
- QUITE=true ./lnmp-docker test development
- << : *development
stage: arm64-development
arch: arm64-graviton2
virt: vm
group: edge
install:
- command -v docker-compose
- sudo rm -rf $(command -v docker-compose) || true
- export LNMP_SERVICES="nginx mariadb php7 redis"
- export LREW_INCLUDE="mariadb"
- stage: swarm
script:
- sudo rm /usr/local/bin/docker-compose
- ./lnmp-docker compose --official -f
- QUITE=true ./lnmp-docker test swarm
# wsl-debian
- stage: wsl-php-builder-72
name: wsl-php-builder-72
install:
- ./lnmp-docker compose --official -f
script:
- cd wsl
# - docker build -t test -f wsl.phpbuilder.Dockerfile --build-arg PHP_VERSION=7.2.5 .
- docker-compose build ${TRAVIS_JOB_NAME}
after_success:
- docker-compose push ${TRAVIS_JOB_NAME}
- docker-compose run ${TRAVIS_JOB_NAME} command || true
- . .env
- export DEB_NAME=khs1994-wsl-php72_${PHP_VERSION_72}-debian-buster_amd64.deb
- docker cp $( docker container ls -a --format {{.ID}} ):/${DEB_NAME} .
- github-release upload --user khs1994-docker --repo lnmp --tag ${TRAVIS_TAG} --name "${DEB_NAME}" --file "${DEB_NAME}" -R
- stage: wsl-php-builder-73
name: wsl-php-builder-73
install:
- ./lnmp-docker compose --official -f
script:
- cd wsl
# - docker build -t test -f wsl.phpbuilder.Dockerfile --build-arg PHP_VERSION=7.2.5 .
- docker-compose build ${TRAVIS_JOB_NAME}
after_success:
- docker-compose push ${TRAVIS_JOB_NAME}
- docker-compose run ${TRAVIS_JOB_NAME} command || true
- . .env
- export DEB_NAME=khs1994-wsl-php73_${PHP_VERSION_73}-debian-buster_amd64.deb
- docker cp $( docker container ls -a --format {{.ID}} ):/${DEB_NAME} .
- github-release upload --user khs1994-docker --repo lnmp --tag ${TRAVIS_TAG} --name "${DEB_NAME}" --file "${DEB_NAME}" -R
- stage: wsl-php-builder-74
name: wsl-php-builder-74
install:
- ./lnmp-docker compose --official -f
script:
- cd wsl
# - docker build -t test -f wsl.phpbuilder.Dockerfile --build-arg PHP_VERSION=7.2.5 .
- docker-compose build ${TRAVIS_JOB_NAME}
after_success:
- docker-compose push ${TRAVIS_JOB_NAME}
- docker-compose run ${TRAVIS_JOB_NAME} command || true
- . .env
- export DEB_NAME=khs1994-wsl-php74_${PHP_VERSION_74}-debian-buster_amd64.deb
- docker cp $( docker container ls -a --format {{.ID}} ):/${DEB_NAME} .
- github-release upload --user khs1994-docker --repo lnmp --tag ${TRAVIS_TAG} --name "${DEB_NAME}" --file "${DEB_NAME}" -R
- stage: wsl-php-builder-80
name: wsl-php-builder-80
install:
- ./lnmp-docker compose --official -f
script:
- cd wsl
# - docker build -t test -f wsl.phpbuilder.Dockerfile --build-arg PHP_VERSION=7.2.5 .
- docker-compose build ${TRAVIS_JOB_NAME}
after_success:
- docker-compose push ${TRAVIS_JOB_NAME}
- docker-compose run ${TRAVIS_JOB_NAME} command || true
- . .env
- export DEB_NAME=khs1994-wsl-php80_${PHP_VERSION_80}-debian-buster_amd64.deb
- docker cp $( docker container ls -a --format {{.ID}} ):/${DEB_NAME} .
- github-release upload --user khs1994-docker --repo lnmp --tag ${TRAVIS_TAG} --name "${DEB_NAME}" --file "${DEB_NAME}" -R
- stage: wsl-php-builder-nightly
name: wsl-php-builder-nightly
install:
- ./lnmp-docker compose --official -f
script:
- cd wsl
# - docker build -t test -f wsl.phpbuilder.Dockerfile --build-arg PHP_VERSION=7.2.5 .
- docker-compose build ${TRAVIS_JOB_NAME}
after_success:
- docker-compose push ${TRAVIS_JOB_NAME}
- docker-compose run ${TRAVIS_JOB_NAME} command || true
- . .env
- export DEB_NAME=khs1994-wsl-php81_0.0.0-debian-buster_amd64.deb
- docker cp $( docker container ls -a --format {{.ID}} ):/${DEB_NAME} .
- github-release upload --user khs1994-docker --repo lnmp --tag ${TRAVIS_TAG} --name "${DEB_NAME}" --file "${DEB_NAME}" -R
- stage: wsl-php-builder-debian11-74
name: wsl-php-builder-debian11-74
install:
- ./lnmp-docker compose --official -f
script:
- cd wsl
# - docker build -t test -f wsl.phpbuilder.Dockerfile --build-arg PHP_VERSION=7.2.5 .
- docker-compose build ${TRAVIS_JOB_NAME}
after_success:
- docker-compose push ${TRAVIS_JOB_NAME}
- docker-compose run ${TRAVIS_JOB_NAME} command || true
- . .env
- export DEB_NAME=khs1994-wsl-php74_${PHP_VERSION_74}-debian-bullseye_amd64.deb
- docker cp $( docker container ls -a --format {{.ID}} ):/${DEB_NAME} .
- github-release upload --user khs1994-docker --repo lnmp --tag ${TRAVIS_TAG} --name "${DEB_NAME}" --file "${DEB_NAME}" -R
# wsl ubuntu 18.04
- stage: wsl-php-builder-ubuntu1804-72
name: wsl-php-builder-ubuntu1804-72
install:
- ./lnmp-docker compose --official -f
script:
- cd wsl
# - docker build -t test -f wsl.phpbuilder.Dockerfile --build-arg PHP_VERSION=7.2.5 .
- docker-compose build ${TRAVIS_JOB_NAME}
after_success:
- docker-compose push ${TRAVIS_JOB_NAME}
- docker-compose run ${TRAVIS_JOB_NAME} command || true
- . .env
- export DEB_NAME=khs1994-wsl-php72_${PHP_VERSION_72}-ubuntu-bionic_amd64.deb
- docker cp $( docker container ls -a --format {{.ID}} ):/${DEB_NAME} .
- github-release upload --user khs1994-docker --repo lnmp --tag ${TRAVIS_TAG} --name "${DEB_NAME}" --file "${DEB_NAME}" -R
- stage: wsl-php-builder-ubuntu1804-73
name: wsl-php-builder-ubuntu1804-73
install:
- ./lnmp-docker compose --official -f
script:
- cd wsl
# - docker build -t test -f wsl.phpbuilder.Dockerfile --build-arg PHP_VERSION=7.2.5 .
- docker-compose build ${TRAVIS_JOB_NAME}
after_success:
- docker-compose push ${TRAVIS_JOB_NAME}
- docker-compose run ${TRAVIS_JOB_NAME} command || true
- . .env
- export DEB_NAME=khs1994-wsl-php73_${PHP_VERSION_73}-ubuntu-bionic_amd64.deb
- docker cp $( docker container ls -a --format {{.ID}} ):/${DEB_NAME} .
- github-release upload --user khs1994-docker --repo lnmp --tag ${TRAVIS_TAG} --name "${DEB_NAME}" --file "${DEB_NAME}" -R
- stage: wsl-php-builder-ubuntu1804-74
name: wsl-php-builder-ubuntu1804-74
install:
- ./lnmp-docker compose --official -f
script:
- cd wsl
# - docker build -t test -f wsl.phpbuilder.Dockerfile --build-arg PHP_VERSION=7.2.5 .
- docker-compose build ${TRAVIS_JOB_NAME}
after_success:
- docker-compose push ${TRAVIS_JOB_NAME}
- docker-compose run ${TRAVIS_JOB_NAME} command || true
- . .env
- export DEB_NAME=khs1994-wsl-php74_${PHP_VERSION_74}-ubuntu-bionic_amd64.deb
- docker cp $( docker container ls -a --format {{.ID}} ):/${DEB_NAME} .
- github-release upload --user khs1994-docker --repo lnmp --tag ${TRAVIS_TAG} --name "${DEB_NAME}" --file "${DEB_NAME}" -R
- stage: wsl-php-builder-ubuntu2004-74
name: wsl-php-builder-ubuntu2004-74
install:
- ./lnmp-docker compose --official -f
script:
- cd wsl
# - docker build -t test -f wsl.phpbuilder.Dockerfile --build-arg PHP_VERSION=7.2.5 .
- docker-compose build ${TRAVIS_JOB_NAME}
after_success:
- docker-compose push ${TRAVIS_JOB_NAME}
- docker-compose run ${TRAVIS_JOB_NAME} command || true
- . .env
- export DEB_NAME=khs1994-wsl-php74_${PHP_VERSION_74}-ubuntu-focal_amd64.deb
- docker cp $( docker container ls -a --format {{.ID}} ):/${DEB_NAME} .
- github-release upload --user khs1994-docker --repo lnmp --tag ${TRAVIS_TAG} --name "${DEB_NAME}" --file "${DEB_NAME}" -R
- stage: wsl-php-builder-ubuntu2010-74
name: wsl-php-builder-ubuntu2010-74
install:
- ./lnmp-docker compose --official -f
script:
- cd wsl
# - docker build -t test -f wsl.phpbuilder.Dockerfile --build-arg PHP_VERSION=7.2.5 .
- docker-compose build ${TRAVIS_JOB_NAME}
after_success:
- docker-compose push ${TRAVIS_JOB_NAME}
- docker-compose run ${TRAVIS_JOB_NAME} command || true
- . .env
- export DEB_NAME=khs1994-wsl-php74_${PHP_VERSION_74}-ubuntu-groovy_amd64.deb
- docker cp $( docker container ls -a --format {{.ID}} ):/${DEB_NAME} .
- github-release upload --user khs1994-docker --repo lnmp --tag ${TRAVIS_TAG} --name "${DEB_NAME}" --file "${DEB_NAME}" -R
- stage: wsl-php-builder-ubuntu2004-nightly
name: wsl-php-builder-ubuntu2004-nightly
install:
- ./lnmp-docker compose --official -f
script:
- cd wsl
# - docker build -t test -f wsl.phpbuilder.Dockerfile --build-arg PHP_VERSION=7.2.5 .
- docker-compose build ${TRAVIS_JOB_NAME}
after_success:
- docker-compose push ${TRAVIS_JOB_NAME}
- docker-compose run ${TRAVIS_JOB_NAME} command || true
- . .env
- export DEB_NAME=khs1994-wsl-php81_0.0.0-ubuntu-focal_amd64.deb
- docker cp $( docker container ls -a --format {{.ID}} ):/${DEB_NAME} .
- github-release upload --user khs1994-docker --repo lnmp --tag ${TRAVIS_TAG} --name "${DEB_NAME}" --file "${DEB_NAME}" -R
# wsl rhel
- stage: wsl-php-builder-rhel7-72
name: wsl-php-builder-rhel7-72
install:
- ./lnmp-docker compose --official -f
script:
- cd wsl
# - docker build -t test -f wsl.phpbuilder.rhel.Dockerfile --build-arg PHP_VERSION=7.2.5 .
- docker-compose build ${TRAVIS_JOB_NAME}
after_success:
- docker-compose push ${TRAVIS_JOB_NAME}
- docker-compose run ${TRAVIS_JOB_NAME} command || true
- . .env
- export RPM_NAME=khs1994-wsl-php72-${PHP_VERSION_72}-1.el7.centos.x86_64.rpm
- docker cp $( docker container ls -a --format {{.ID}} ):/${RPM_NAME} .
- github-release upload --user khs1994-docker --repo lnmp --tag ${TRAVIS_TAG} --name "${RPM_NAME}" --file "${RPM_NAME}" -R
- stage: wsl-php-builder-rhel7-73
name: wsl-php-builder-rhel7-73
install:
- ./lnmp-docker compose --official -f
script:
- cd wsl
# - docker build -t test -f wsl.phpbuilder.rhel.Dockerfile --build-arg PHP_VERSION=7.2.5 .
- docker-compose build ${TRAVIS_JOB_NAME}
after_success:
- docker-compose push ${TRAVIS_JOB_NAME}
- docker-compose run ${TRAVIS_JOB_NAME} command || true
- . .env
- export RPM_NAME=khs1994-wsl-php73-${PHP_VERSION_73}-1.el7.centos.x86_64.rpm
- docker cp $( docker container ls -a --format {{.ID}} ):/${RPM_NAME} .
- github-release upload --user khs1994-docker --repo lnmp --tag ${TRAVIS_TAG} --name "${RPM_NAME}" --file "${RPM_NAME}" -R
- stage: wsl-php-builder-rhel8-73
name: wsl-php-builder-rhel8-73
install:
- ./lnmp-docker compose --official -f
script:
- cd wsl
# - docker build -t test -f wsl.phpbuilder.rhel.Dockerfile --build-arg PHP_VERSION=7.2.5 .
- docker-compose build ${TRAVIS_JOB_NAME}
after_success:
- docker-compose push ${TRAVIS_JOB_NAME}
- docker-compose run ${TRAVIS_JOB_NAME} command || true
- . .env
- export RPM_NAME=khs1994-wsl-php73-${PHP_VERSION_73}-1.el8.centos.x86_64.rpm
- docker cp $( docker container ls -a --format {{.ID}} ):/${RPM_NAME} .
- github-release upload --user khs1994-docker --repo lnmp --tag ${TRAVIS_TAG} --name "${RPM_NAME}" --file "${RPM_NAME}" -R
- stage: wsl-php-builder-rhel8-74
name: wsl-php-builder-rhel8-74
install:
- ./lnmp-docker compose --official -f
script:
- cd wsl
# - docker build -t test -f wsl.phpbuilder.rhel.Dockerfile --build-arg PHP_VERSION=7.2.5 .
- docker-compose build ${TRAVIS_JOB_NAME}
after_success:
- docker-compose push ${TRAVIS_JOB_NAME}
- docker-compose run ${TRAVIS_JOB_NAME} command || true
- . .env
- export RPM_NAME=khs1994-wsl-php74-${PHP_VERSION_74}-1.el8.centos.x86_64.rpm
- docker cp $( docker container ls -a --format {{.ID}} ):/${RPM_NAME} .
- github-release upload --user khs1994-docker --repo lnmp --tag ${TRAVIS_TAG} --name "${RPM_NAME}" --file "${RPM_NAME}" -R
- stage: wsl-php-builder-fc32-73
name: wsl-php-builder-fc32-73
install:
- ./lnmp-docker compose --official -f
script:
- cd wsl
# - docker build -t test -f wsl.phpbuilder.rhel.Dockerfile --build-arg PHP_VERSION=7.2.5 .
- docker-compose build ${TRAVIS_JOB_NAME}
after_success:
- docker-compose push ${TRAVIS_JOB_NAME}
- docker-compose run ${TRAVIS_JOB_NAME} command || true
- . .env
- export RPM_NAME=khs1994-wsl-php73-${PHP_VERSION_73}-1.fc32.x86_64.rpm
- docker cp $( docker container ls -a --format {{.ID}} ):/${RPM_NAME} .
- github-release upload --user khs1994-docker --repo lnmp --tag ${TRAVIS_TAG} --name "${RPM_NAME}" --file "${RPM_NAME}" -R
- stage: wsl-php-builder-fc32-74
name: wsl-php-builder-fc32-74
install:
- ./lnmp-docker compose --official -f
script:
- cd wsl
# - docker build -t test -f wsl.phpbuilder.rhel.Dockerfile --build-arg PHP_VERSION=7.2.5 .
- docker-compose build ${TRAVIS_JOB_NAME}
after_success:
- docker-compose push ${TRAVIS_JOB_NAME}
- docker-compose run ${TRAVIS_JOB_NAME} command || true
- . .env
- export RPM_NAME=khs1994-wsl-php74-${PHP_VERSION_74}-1.fc32.x86_64.rpm
- docker cp $( docker container ls -a --format {{.ID}} ):/${RPM_NAME} .
- github-release upload --user khs1994-docker --repo lnmp --tag ${TRAVIS_TAG} --name "${RPM_NAME}" --file "${RPM_NAME}" -R
- stage: wsl-php-builder-fc32-80
name: wsl-php-builder-fc32-80
install:
- ./lnmp-docker compose --official -f
script:
- cd wsl
# - docker build -t test -f wsl.phpbuilder.rhel.Dockerfile --build-arg PHP_VERSION=7.2.5 .
- docker-compose build ${TRAVIS_JOB_NAME}
after_success:
- docker-compose push ${TRAVIS_JOB_NAME}
- docker-compose run ${TRAVIS_JOB_NAME} command || true
- . .env
- export RPM_NAME=khs1994-wsl-php80-${PHP_VERSION_80}-1.fc32.x86_64.rpm
- docker cp $( docker container ls -a --format {{.ID}} ):/${RPM_NAME} .
- github-release upload --user khs1994-docker --repo lnmp --tag ${TRAVIS_TAG} --name "${RPM_NAME}" --file "${RPM_NAME}" -R
- stage: wsl-php-builder-fc32-nightly
name: wsl-php-builder-fc32-nightly
install:
- ./lnmp-docker compose --official -f
script:
- cd wsl
# - docker build -t test -f wsl.phpbuilder.rhel.Dockerfile --build-arg PHP_VERSION=7.2.5 .
- docker-compose build ${TRAVIS_JOB_NAME}
after_success:
- docker-compose push ${TRAVIS_JOB_NAME}
- docker-compose run ${TRAVIS_JOB_NAME} command || true
- . .env
- export RPM_NAME=khs1994-wsl-php81-0.0.0-1.fc32.x86_64.rpm
- docker cp $( docker container ls -a --format {{.ID}} ):/${RPM_NAME} .
- github-release upload --user khs1994-docker --repo lnmp --tag ${TRAVIS_TAG} --name "${RPM_NAME}" --file "${RPM_NAME}" -R
- stage: wsl-php-builder-fc33-nightly
name: wsl-php-builder-fc33-nightly
install:
- ./lnmp-docker compose --official -f
script:
- cd wsl
# - docker build -t test -f wsl.phpbuilder.rhel.Dockerfile --build-arg PHP_VERSION=7.2.5 .
- docker-compose build ${TRAVIS_JOB_NAME}
after_success:
- docker-compose push ${TRAVIS_JOB_NAME}
- docker-compose run ${TRAVIS_JOB_NAME} command || true
- . .env
- export RPM_NAME=khs1994-wsl-php81-0.0.0-1.fc33.x86_64.rpm
- docker cp $( docker container ls -a --format {{.ID}} ):/${RPM_NAME} .
- github-release upload --user khs1994-docker --repo lnmp --tag ${TRAVIS_TAG} --name "${RPM_NAME}" --file "${RPM_NAME}" -R
- stage: wsl-php-builder-fc34-74
name: wsl-php-builder-fc34-74
install:
- ./lnmp-docker compose --official -f
script:
- cd wsl
# - docker build -t test -f wsl.phpbuilder.rhel.Dockerfile --build-arg PHP_VERSION=7.2.5 .
- docker-compose build ${TRAVIS_JOB_NAME}
after_success:
- docker-compose push ${TRAVIS_JOB_NAME}
- docker-compose run ${TRAVIS_JOB_NAME} command || true
- . .env
- export RPM_NAME=khs1994-wsl-php74-${PHP_VERSION_74}-1.fc34.x86_64.rpm
- docker cp $( docker container ls -a --format {{.ID}} ):/${RPM_NAME} .
- github-release upload --user khs1994-docker --repo lnmp --tag ${TRAVIS_TAG} --name "${RPM_NAME}" --file "${RPM_NAME}" -R
# clusterkit
# - stage: memcached
# script:
# - stage: mysql
# script:
# - stage: redis-master-slave
# script:
# - stage: redis-sentinel
# script:
# - stage: redis-cluster-by-ruby
# script:
- stage: deb
script:
- ./lnmp-docker compose --official -f
- sh cli/build.sh deb ${TRAVIS_TAG}
- export VERSION=$( echo ${TRAVIS_TAG} | cut -d "v" -f 2 )
- export DEB_NAME=khs1994-docker-lnmp_${VERSION}_amd64.deb
- ls -la cli
- sudo dpkg -i cli/${DEB_NAME}
- github-release upload --user khs1994-docker --repo lnmp --tag ${TRAVIS_TAG} --name "${DEB_NAME}" --file "cli/${DEB_NAME}" -R
- stage: rpm
install:
# Don't build rc rpm
- test $( echo "${TRAVIS_TAG}" | grep alpha ) && exit 0 || true
- test $( echo "${TRAVIS_TAG}" | grep beta ) && exit 0 || true
- test $( echo "${TRAVIS_TAG}" | grep rc ) && exit 0 || true
script:
- sudo apt install -y rpm
- sh cli/build.sh rpm ${TRAVIS_TAG}
- export VERSION=$( echo ${TRAVIS_TAG} | cut -d "v" -f 2 )
- export RPM_NAME=$( cd $HOME; ls *.rpm )
- ls -la ~/*.rpm
- github-release upload --user khs1994-docker --repo lnmp --tag ${TRAVIS_TAG} --name "${RPM_NAME}" --file "${HOME}/${RPM_NAME}" -R
- stage: checkConfig
script:
- sudo apt install -y tree
- cd config
- ./default.sh
- tree .
- cd ..
- git status | grep "nothing to commit" && exit 0 || true
- git add .
- git commit -m "[Config] Update default config" || exit 0
- git remote add github https://khs1994:${GITHUB_TOKEN}@github.com/khs1994-docker/lnmp.git
- git checkout -b 20.10-config
- git push github 20.10-config -f
# stages:
# - test
# # - name: deploy
# # if: tag =~ ^[0-9.]+$
# # if: branch = master
# # if: type IN (push, pull_request, api, cron)
# https://docs.travis-ci.com/user/conditions-v1
stages:
- name: development
if: branch = "master"
- name: arm64-development
if: branch = "master"
- name: swarm
if: tag =~ /^(v18)/
- name: checkConfig
if: |
branch = "20.10"
- name: tag
if: tag =~ /^(v20)/
# don't run
# - name: docs
# if: tag =~ /^(vxx)/
- name: deb
if: tag =~ /^(v20)/
- name: rpm
if: tag =~ /^(v20)/
- name: wsl-php-builder-72
if: tag =~ /^(v20)/
- name: wsl-php-builder-73
if: tag =~ /^(v20)/
- name: wsl-php-builder-74
if: tag =~ /^(v20)/
- name: wsl-php-builder-80
if: tag =~ /^(v20)/
- name: wsl-php-builder-nightly
if: tag =~ /^(v20)/
- name: wsl-php-builder-debian11-74
if: tag =~ /^(v20)/
- name: wsl-php-builder-ubuntu1804-72
if: tag =~ /^(v20)/
- name: wsl-php-builder-ubuntu1804-73
if: tag =~ /^(v20)/
- name: wsl-php-builder-ubuntu1804-74
if: tag =~ /^(v20)/
- name: wsl-php-builder-ubuntu2004-74
if: tag =~ /^(v20)/
- name: wsl-php-builder-ubuntu2010-74
if: tag =~ /^(v20)/
- name: wsl-php-builder-ubuntu2004-nightly
if: tag =~ /^(v20)/
- name: wsl-php-builder-rhel7-72
if: tag =~ /^(v20)/
- name: wsl-php-builder-rhel7-73
if: tag =~ /^(v20)/
- name: wsl-php-builder-rhel8-73
if: tag =~ /^(v20)/
- name: wsl-php-builder-rhel8-74
if: tag =~ /^(v20)/
- name: wsl-php-builder-fc32-73
if: tag =~ /^(v20)/
- name: wsl-php-builder-fc32-74
if: tag =~ /^(v20)/
- name: wsl-php-builder-fc32-80
if: tag =~ /^(v20)/
- name: wsl-php-builder-fc32-nightly
if: tag =~ /^(v20)/
- name: wsl-php-builder-fc33-nightly
if: tag =~ /^(v20)/
- name: wsl-php-builder-fc34-74
if: tag =~ /^(v20)/
# branches:
# only:
# - master
# - '18.06'
# - dev
# - /^(v18)/
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Docker
1
https://gitee.com/jenarlion/lnmp.git
git@gitee.com:jenarlion/lnmp.git
jenarlion
lnmp
lnmp
master

搜索帮助