Push latest v2 Docker image as well
This commit is contained in:
parent
7eececead6
commit
3851927396
@ -36,7 +36,7 @@ jobs:
|
|||||||
if: branch == master AND tag IS blank
|
if: branch == master AND tag IS blank
|
||||||
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 build -t codercom/code-server:$VERSION .
|
- docker build -t codercom/code-server:$VERSION -t codercom/code-server:v2 .
|
||||||
|
|
||||||
git:
|
git:
|
||||||
depth: 3
|
depth: 3
|
||||||
@ -64,7 +64,9 @@ deploy:
|
|||||||
repo: cdr/code-server
|
repo: cdr/code-server
|
||||||
branch: master
|
branch: master
|
||||||
- provider: script
|
- provider: script
|
||||||
script: docker push codercom/code-server:$VERSION
|
script:
|
||||||
|
- docker push codercom/code-server:$VERSION
|
||||||
|
- docker push codercom/code-server:v2
|
||||||
on:
|
on:
|
||||||
repo: cdr/code-server
|
repo: cdr/code-server
|
||||||
branch: master
|
branch: master
|
||||||
|
Loading…
Reference in New Issue
Block a user