From 38519273961c5658853af8773c152006993ac7b3 Mon Sep 17 00:00:00 2001 From: Asher Date: Tue, 17 Sep 2019 12:31:40 -0500 Subject: [PATCH] Push latest v2 Docker image as well --- .travis.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index f98135be..540d10e8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -36,7 +36,7 @@ jobs: if: branch == master AND tag IS blank script: - echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin hub.docker.com - - docker build -t codercom/code-server:$VERSION . + - docker build -t codercom/code-server:$VERSION -t codercom/code-server:v2 . git: depth: 3 @@ -64,7 +64,9 @@ deploy: repo: cdr/code-server branch: master - provider: script - script: docker push codercom/code-server:$VERSION + script: + - docker push codercom/code-server:$VERSION + - docker push codercom/code-server:v2 on: repo: cdr/code-server branch: master @@ -74,4 +76,4 @@ cache: yarn: true timeout: 1000 directories: - - .cache \ No newline at end of file + - .cache