mirror of
https://github.com/CopterExpress/clover.git
synced 2026-06-01 15:39:32 +00:00
Compare commits
5 Commits
save-debs
...
travis_siz
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3460fec25e | ||
|
|
fa44e4b42f | ||
|
|
4bc985a7f4 | ||
|
|
c2bfa07a36 | ||
|
|
6ba27ef15d |
@@ -7,7 +7,7 @@ env:
|
|||||||
global:
|
global:
|
||||||
- DOCKER="sfalexrog/img-tool:qemu-update"
|
- DOCKER="sfalexrog/img-tool:qemu-update"
|
||||||
- TARGET_REPO="https://github.com/${TRAVIS_REPO_SLUG}.git"
|
- TARGET_REPO="https://github.com/${TRAVIS_REPO_SLUG}.git"
|
||||||
- if [[ -z ${TRAVIS_TAG} ]]; then IMAGE_VERSION="${TRAVIS_COMMIT}}"; else IMAGE_VERSION="${TRAVIS_TAG}"; fi
|
- IMAGE_VERSION=${TRAVIS_TAG:-${TRAVIS_COMMIT:0:7}}
|
||||||
- IMAGE_NAME="$(basename -s '.git' ${TARGET_REPO})_${IMAGE_VERSION}.img"
|
- IMAGE_NAME="$(basename -s '.git' ${TARGET_REPO})_${IMAGE_VERSION}.img"
|
||||||
git:
|
git:
|
||||||
depth: 50
|
depth: 50
|
||||||
@@ -36,12 +36,13 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
before_cache:
|
before_cache:
|
||||||
- cp images/*.zip imgcache
|
- cp images/*.zip imgcache
|
||||||
|
after_success:
|
||||||
|
- sudo chmod -R 777 *
|
||||||
|
- cd images && zip ${IMAGE_NAME}.zip ${IMAGE_NAME} && stat --printf="Compressed image size:%s\n" ${IMAGE_NAME}.zip
|
||||||
before_deploy:
|
before_deploy:
|
||||||
# Set up git user name and tag this commit
|
# Set up git user name and tag this commit
|
||||||
- git config --local user.name "goldarte"
|
- git config --local user.name "goldarte"
|
||||||
- git config --local user.email "goldartt@gmail.com"
|
- git config --local user.email "goldartt@gmail.com"
|
||||||
- sudo chmod -R 777 *
|
|
||||||
- cd images && zip ${IMAGE_NAME}.zip ${IMAGE_NAME}
|
|
||||||
deploy:
|
deploy:
|
||||||
provider: releases
|
provider: releases
|
||||||
token: ${GITHUB_OAUTH_TOKEN}
|
token: ${GITHUB_OAUTH_TOKEN}
|
||||||
|
|||||||
Reference in New Issue
Block a user