Skip to content

Commit 6dd5e51

Browse files
committed
Travis release on tags only and remove Docker push
The manual tagging is necessary to sync up the releases of the two different CIs.
1 parent 92da02e commit 6dd5e51

File tree

1 file changed

+3
-19
lines changed

1 file changed

+3
-19
lines changed

.travis.yml

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -17,26 +17,18 @@ jobs:
1717
include:
1818
- name: "MacOS build"
1919
os: osx
20-
if: tag IS blank
2120
script: travis_wait 60 scripts/ci.bash
2221

2322
git:
2423
depth: 3
2524

26-
before_deploy:
27-
- echo "$TAG" "$TRAVIS_COMMIT"
28-
- git config --local user.name "$USER_NAME"
29-
- git config --local user.email "$USER_EMAIL"
30-
- if ! git tag "$TAG" "$TRAVIS_COMMIT" ; then echo "$TAG already exists"; fi
31-
- if [[ -n "$PUSH_DOCKER" ]] ; then echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin ; fi
32-
3325
deploy:
3426
- provider: releases
3527
file_glob: true
3628
draft: true
37-
tag_name: "$TAG"
29+
tag_name: "$TRAVIS_TAG"
3830
target_commitish: "$TRAVIS_COMMIT"
39-
name: "$TAG"
31+
name: "$TRAVIS_TAG"
4032
skip_cleanup: true
4133
api_key:
4234
secure: YL/x24KjYjgYXPcJWk3FV7FGxI79Mh6gBECQEcdlf3fkLEoKFVgzHBoUNWrFPzyR4tgLyWNAgcpD9Lkme1TRWTom7UPjXcwMNyLcLa+uec7ciSAnYD9ntLTpiCuPDD1u0LtRGclSi/EHQ+F8YVq+HZJpXTsJeAmOmihma3GVbGKSZr+BRum+0YZSG4w+o4TOlYzw/4bLWS52MogZcwpjd+hemBbgXLuGU2ziKv2vEKCZFbEeA16II4x1WLI4mutDdCeh7+3aLzGLwDa49NxtsVYNjyNFF75JhCTCNA55e2YMiLz9Uq69IXe/mi5F7xUaFfhIqqLNyKBnKeEOzu3dYnc+8n3LjnQ+00PmkF05nx9kBn3UfV1kwQGh6QbyDmTtBP07rtUMyI14aeQqHjxsaVRdMnwj9Q2DjXRr8UDqESZF0rmK3pHCXS2fBhIzLE8tLVW5Heiba2pQRFMHMZW+KBE97FzcFh7is90Ait3T8enfcd/PWFPYoBejDAdjwxwOkezh5N5ZkYquEfDYuWrFi6zRFCktsruaAcA+xGtTf9oilBBzUqu8Ie+YFWH5me83xakcblJWdaW/D2rLJAJH3m6LFm8lBqyUgDX5t/etob6CpDuYHu5D1J3XINOj/+aLAcadq6qlh70PMZS3zYffUu3JlzaD2amlSHIT8b5YXFc=
@@ -45,15 +37,7 @@ deploy:
4537
- release/*.zip
4638
on:
4739
repo: cdr/code-server
48-
branch: master
49-
50-
- provider: script
51-
skip_cleanup: true
52-
script: docker build -f ./scripts/ci.dockerfile -t codercom/code-server:"$TAG" . && docker push codercom/code-server:"$TAG"
53-
on:
54-
repo: cdr/code-server
55-
branch: master
56-
condition: -n "$PUSH_DOCKER"
40+
tags: true
5741

5842
cache:
5943
timeout: 1000

0 commit comments

Comments
 (0)