Fix incorrect Docker tag
This commit is contained in:
parent
17c5173d8b
commit
4733c31a2f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue