From 4733c31a2f8e6b425c3428978b814c29c2c91b8a Mon Sep 17 00:00:00 2001 From: Asher Date: Tue, 17 Sep 2019 14:21:23 -0500 Subject: [PATCH] Fix incorrect Docker tag --- .travis.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 4cee99dc..c4f2049f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -36,7 +36,7 @@ jobs: dist: trusty env: DOCKER_BUILD="true" if: branch == master AND tag IS blank - 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 . + 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 . git: depth: 3 @@ -65,6 +65,7 @@ deploy: branch: master - provider: script + skip_cleanup: true script: - echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin hub.docker.com - docker push codercom/code-server:"$VERSION" @@ -72,7 +73,7 @@ deploy: on: repo: cdr/code-server branch: master - condition: -n "$DOCKER_BUILD" + condition: "$DOCKER_BUILD" cache: yarn: true -- GitLab