Skip to content

Commit 4733c31

Browse files
committed
Fix incorrect Docker tag
1 parent 17c5173 commit 4733c31

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.travis.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
dist: trusty
3737
env: DOCKER_BUILD="true"
3838
if: branch == master AND tag IS blank
39-
script: docker build --build-arg githubToken="$GITHUB_TOKEN" --build-arg codeServerVersion="$VERSION" --build-arg vscodeVersion="$VSCODE_VERSION" -t codercom/code-server:"$VERSION" -t codercom/code-server:v2 .
39+
script: docker build --build-arg githubToken="$GITHUB_TOKEN" --build-arg codeServerVersion="$VERSION" --build-arg vscodeVersion="$VSCODE_VERSION" -t codercom/code-server:"TAG" -t codercom/code-server:v2 .
4040

4141
git:
4242
depth: 3
@@ -65,14 +65,15 @@ deploy:
6565
branch: master
6666

6767
- provider: script
68+
skip_cleanup: true
6869
script:
6970
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin hub.docker.com
7071
- docker push codercom/code-server:"$VERSION"
7172
- docker push codercom/code-server:v2
7273
on:
7374
repo: cdr/code-server
7475
branch: master
75-
condition: -n "$DOCKER_BUILD"
76+
condition: "$DOCKER_BUILD"
7677

7778
cache:
7879
yarn: true

0 commit comments

Comments
 (0)