Fix Drone CI releases

Also skip the 32 bit arm releases since they don't currently build
anyway.
This commit is contained in:
Asher 2020-01-16 14:53:59 -06:00
parent e2d354c8f2
commit 101139fabf
No known key found for this signature in database
GPG Key ID: D63C1EF81242354A
1 changed files with 46 additions and 43 deletions

View File

@ -46,6 +46,8 @@ steps:
from_secret: github_token from_secret: github_token
files: release/*.tar.gz files: release/*.tar.gz
draft: true draft: true
overwrite: true
title: ${DRONE_TAG}
when: when:
event: tag event: tag
@ -55,15 +57,11 @@ steps:
username: username:
from_secret: docker_user from_secret: docker_user
password: password:
from_secret: docker_password from_secret: docker_pass
repo: codercom/code-server repo: codercom/code-server
dockerfile: scripts/ci.dockerfile dockerfile: scripts/ci.dockerfile
tags: tags:
- latest
- v2
- ${DRONE_TAG} - ${DRONE_TAG}
build_args:
- tag=${DRONE_TAG}
when: when:
event: tag event: tag
@ -116,6 +114,8 @@ steps:
from_secret: github_token from_secret: github_token
files: release/*.tar.gz files: release/*.tar.gz
draft: true draft: true
overwrite: true
title: ${DRONE_TAG}
when: when:
event: tag event: tag
@ -168,6 +168,8 @@ steps:
from_secret: github_token from_secret: github_token
files: release/*.tar.gz files: release/*.tar.gz
draft: true draft: true
overwrite: true
title: ${DRONE_TAG}
when: when:
event: tag event: tag
@ -177,14 +179,11 @@ steps:
username: username:
from_secret: docker_user from_secret: docker_user
password: password:
from_secret: docker_password from_secret: docker_pass
repo: codercom/code-server repo: codercom/code-server
dockerfile: scripts/ci.dockerfile dockerfile: scripts/ci.dockerfile
tags: tags:
- arm64
- ${DRONE_TAG}-arm64 - ${DRONE_TAG}-arm64
build_args:
- tag=${DRONE_TAG}
when: when:
event: tag event: tag
@ -237,6 +236,8 @@ steps:
from_secret: github_token from_secret: github_token
files: release/*.tar.gz files: release/*.tar.gz
draft: true draft: true
overwrite: true
title: ${DRONE_TAG}
when: when:
event: tag event: tag
@ -283,32 +284,31 @@ steps:
commands: commands:
- yarn test - yarn test
- name: publish:github # - name: publish:github
image: plugins/github-release # image: plugins/github-release
settings: # settings:
api_key: # api_key:
from_secret: github_token # from_secret: github_token
files: release/*.tar.gz # files: release/*.tar.gz
draft: true # draft: true
when: # overwrite: true
event: tag # title: ${DRONE_TAG}
# when:
# event: tag
- name: publish:docker # - name: publish:docker
image: plugins/docker # image: plugins/docker
settings: # settings:
username: # username:
from_secret: docker_user # from_secret: docker_user
password: # password:
from_secret: docker_password # from_secret: docker_pass
repo: codercom/code-server # repo: codercom/code-server
dockerfile: scripts/ci.dockerfile # dockerfile: scripts/ci.dockerfile
tags: # tags:
- arm # - ${DRONE_TAG}-arm
- ${DRONE_TAG}-arm # when:
build_args: # event: tag
- tag=${DRONE_TAG}
when:
event: tag
--- ---
kind: pipeline kind: pipeline
@ -353,12 +353,15 @@ steps:
commands: commands:
- yarn test - yarn test
- name: publish:github # - name: publish:github
image: plugins/github-release # image: plugins/github-release
settings: # failure: ignore
api_key: # settings:
from_secret: github_token # api_key:
files: release/*.tar.gz # from_secret: github_token
draft: true # files: release/*.tar.gz
when: # draft: true
event: tag # overwrite: true
# title: ${DRONE_TAG}
# when:
# event: tag