Fix incorrect Docker tag

This commit is contained in:
Asher 2019-09-17 14:21:23 -05:00
parent 17c5173d8b
commit 4733c31a2f
No known key found for this signature in database
GPG Key ID: D63C1EF81242354A
1 changed files with 3 additions and 2 deletions

View File

@ -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