Travis release on tags only and remove Docker push
The manual tagging is necessary to sync up the releases of the two different CIs.
This commit is contained in:
parent
92da02ef3e
commit
6dd5e515c5
22
.travis.yml
22
.travis.yml
@ -17,26 +17,18 @@ jobs:
|
|||||||
include:
|
include:
|
||||||
- name: "MacOS build"
|
- name: "MacOS build"
|
||||||
os: osx
|
os: osx
|
||||||
if: tag IS blank
|
|
||||||
script: travis_wait 60 scripts/ci.bash
|
script: travis_wait 60 scripts/ci.bash
|
||||||
|
|
||||||
git:
|
git:
|
||||||
depth: 3
|
depth: 3
|
||||||
|
|
||||||
before_deploy:
|
|
||||||
- echo "$TAG" "$TRAVIS_COMMIT"
|
|
||||||
- git config --local user.name "$USER_NAME"
|
|
||||||
- git config --local user.email "$USER_EMAIL"
|
|
||||||
- if ! git tag "$TAG" "$TRAVIS_COMMIT" ; then echo "$TAG already exists"; fi
|
|
||||||
- if [[ -n "$PUSH_DOCKER" ]] ; then echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin ; fi
|
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
- provider: releases
|
- provider: releases
|
||||||
file_glob: true
|
file_glob: true
|
||||||
draft: true
|
draft: true
|
||||||
tag_name: "$TAG"
|
tag_name: "$TRAVIS_TAG"
|
||||||
target_commitish: "$TRAVIS_COMMIT"
|
target_commitish: "$TRAVIS_COMMIT"
|
||||||
name: "$TAG"
|
name: "$TRAVIS_TAG"
|
||||||
skip_cleanup: true
|
skip_cleanup: true
|
||||||
api_key:
|
api_key:
|
||||||
secure: YL/x24KjYjgYXPcJWk3FV7FGxI79Mh6gBECQEcdlf3fkLEoKFVgzHBoUNWrFPzyR4tgLyWNAgcpD9Lkme1TRWTom7UPjXcwMNyLcLa+uec7ciSAnYD9ntLTpiCuPDD1u0LtRGclSi/EHQ+F8YVq+HZJpXTsJeAmOmihma3GVbGKSZr+BRum+0YZSG4w+o4TOlYzw/4bLWS52MogZcwpjd+hemBbgXLuGU2ziKv2vEKCZFbE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+aLAcadq6qlh70PMZS3zYffUu3JlzaD2amlSHIT8b5YXFc=
|
||||||
@ -45,15 +37,7 @@ deploy:
|
|||||||
- release/*.zip
|
- release/*.zip
|
||||||
on:
|
on:
|
||||||
repo: cdr/code-server
|
repo: cdr/code-server
|
||||||
branch: master
|
tags: true
|
||||||
|
|
||||||
- provider: script
|
|
||||||
skip_cleanup: true
|
|
||||||
script: docker build -f ./scripts/ci.dockerfile -t codercom/code-server:"$TAG" . && docker push codercom/code-server:"$TAG"
|
|
||||||
on:
|
|
||||||
repo: cdr/code-server
|
|
||||||
branch: master
|
|
||||||
condition: -n "$PUSH_DOCKER"
|
|
||||||
|
|
||||||
cache:
|
cache:
|
||||||
timeout: 1000
|
timeout: 1000
|
||||||
|
Reference in New Issue
Block a user