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