mirror of
https://github.com/CopterExpress/clover.git
synced 2026-05-28 05:59:32 +00:00
28 lines
774 B
YAML
28 lines
774 B
YAML
sudo: required
|
|
language: generic
|
|
services:
|
|
- docker
|
|
env:
|
|
global:
|
|
- DOCKER=smirart/builder:latest
|
|
git:
|
|
depth: 1
|
|
before_script:
|
|
- docker pull ${DOCKER}
|
|
script:
|
|
- docker run --privileged --rm -v /dev:/dev -v $(pwd)/image:/builder/image -e "TARGET_REPO=https://github.com/${TRAVIS_REPO_SLUG}.git" -e "TARGET_REF=${TRAVIS_BRANCH}" ${DOCKER}
|
|
#after_failure:
|
|
# - skip_deploy: true
|
|
before_deploy:
|
|
# Set up git user name and tag this commit
|
|
- git config --local user.name "urpylka"
|
|
- git config --local user.email "urpylka@gmail.com"
|
|
- git tag "$(date +'%Y%m%d%H%M%S')-$(git log --format=%h -1)"
|
|
- cd image && zip ${IMAGE_NAME}.zip ${IMAGE_NAME} \
|
|
|
|
deploy:
|
|
provider: releases
|
|
api_key: ${GITHUB_OAUTH_TOKEN}
|
|
file: ${IMAGE_PATH}.zip
|
|
skip_cleanup: true
|