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

View File

@ -36,7 +36,7 @@ jobs:
dist: trusty dist: trusty
env: DOCKER_BUILD="true" env: DOCKER_BUILD="true"
if: branch == master AND tag IS blank 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: git:
depth: 3 depth: 3
@ -65,6 +65,7 @@ deploy:
branch: master branch: master
- provider: script - provider: script
skip_cleanup: true
script: script:
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin hub.docker.com - echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin hub.docker.com
- docker push codercom/code-server:"$VERSION" - docker push codercom/code-server:"$VERSION"
@ -72,7 +73,7 @@ deploy:
on: on:
repo: cdr/code-server repo: cdr/code-server
branch: master branch: master
condition: -n "$DOCKER_BUILD" condition: "$DOCKER_BUILD"
cache: cache:
yarn: true yarn: true