1 Star 0 Fork 1

coolsoul/board

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.travis.yml 1.18 KB
一键复制 编辑 原始数据 按行查看 历史
sudo: required
language: php
services:
- docker
env:
global:
- IMAGE_NAME=restyaplatform/restyaboard
cache:
directories:
- node_modules
jobs:
include:
- stage: test
script:
- npm cache verify
- npm install
- grunt pre-commit
- stage: release
script:
- docker pull "${IMAGE_NAME}:dev"
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
# Direct push to dev
- if [ "$TRAVIS_BRANCH" = "dev" -a "$TRAVIS_PULL_REQUEST" = "false" ]; then
docker build --pull --cache-from "${IMAGE_NAME}:dev" --tag "${IMAGE_NAME}" .;
docker tag "$IMAGE_NAME" "${IMAGE_NAME}:dev";
docker push "${IMAGE_NAME}:dev";
exit 0;
fi
# PullRequests
- if [ "$TRAVIS_PULL_REQUEST" = "true" ]; then
exit 0;
fi
# Tags
- if [ -n "$TRAVIS_TAG" ]; then
docker build --pull --cache-from "${IMAGE_NAME}:dev" --tag "${IMAGE_NAME}" .;
docker tag "$IMAGE_NAME" "${IMAGE_NAME}:$TRAVIS_TAG";
docker push "${IMAGE_NAME}:$TRAVIS_TAG";
exit 0;
fi
# Else
- exit 0;
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/coolsoul/board.git
[email protected]:coolsoul/board.git
coolsoul
board
board
master

搜索帮助