2020-01-15 20:14:05 +01:00
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
2020-01-14 19:29:57 +01:00
|
|
|
name: amd64:linux
|
2020-01-15 20:14:05 +01:00
|
|
|
|
|
|
|
platform:
|
|
|
|
arch: amd64
|
|
|
|
|
|
|
|
steps:
|
2020-02-04 22:00:44 +01:00
|
|
|
- name: cache:restore
|
|
|
|
image: codercom/nbin:centos
|
2020-02-04 20:27:46 +01:00
|
|
|
commands:
|
2020-02-04 22:00:44 +01:00
|
|
|
- yum install -y libxkbfile-devel libsecret-devel
|
|
|
|
- . /opt/rh/devtoolset-6/enable
|
|
|
|
- ./scripts/cacher.sh
|
2020-02-04 20:27:46 +01:00
|
|
|
|
2020-02-04 22:00:44 +01:00
|
|
|
- name: lint
|
2020-01-14 19:29:57 +01:00
|
|
|
image: node:12
|
|
|
|
commands:
|
2020-02-04 22:00:44 +01:00
|
|
|
- yarn lint
|
|
|
|
|
|
|
|
- name: test
|
|
|
|
image: codercom/nbin:centos
|
|
|
|
commands:
|
|
|
|
- yum install -y openssl
|
|
|
|
- yarn test
|
2020-01-15 20:14:05 +01:00
|
|
|
|
2020-01-14 19:29:57 +01:00
|
|
|
- name: build
|
2020-01-17 23:11:53 +01:00
|
|
|
image: codercom/nbin:centos
|
2020-01-14 19:29:57 +01:00
|
|
|
commands:
|
2020-01-17 23:11:53 +01:00
|
|
|
- yum install -y libxkbfile-devel libsecret-devel
|
|
|
|
- . /opt/rh/devtoolset-6/enable
|
2020-02-04 22:00:44 +01:00
|
|
|
- timeout 50m ./scripts/ci.bash || echo 'Timed out or failed; continuing to preserve cache for the next run'
|
2020-01-14 19:29:57 +01:00
|
|
|
|
|
|
|
- name: cache:package
|
|
|
|
image: node:12
|
|
|
|
commands:
|
|
|
|
- ./scripts/cacher.sh
|
|
|
|
when:
|
|
|
|
event: push
|
|
|
|
|
|
|
|
- name: cache:push
|
|
|
|
image: plugins/gcs
|
|
|
|
settings:
|
|
|
|
source: cache-upload/
|
|
|
|
target: codesrv-ci.cdr.sh
|
|
|
|
token:
|
|
|
|
from_secret: gcs-token
|
|
|
|
when:
|
|
|
|
event: push
|
|
|
|
|
2020-02-04 22:00:44 +01:00
|
|
|
- name: test:build
|
|
|
|
image: codercom/nbin:centos
|
2020-01-14 19:29:57 +01:00
|
|
|
commands:
|
2020-02-04 22:00:44 +01:00
|
|
|
- yarn test:build
|
2020-01-14 19:29:57 +01:00
|
|
|
|
|
|
|
- name: publish:github
|
|
|
|
image: plugins/github-release
|
|
|
|
settings:
|
|
|
|
api_key:
|
|
|
|
from_secret: github_token
|
|
|
|
files: release/*.tar.gz
|
2020-01-14 20:10:28 +01:00
|
|
|
draft: true
|
2020-01-16 21:53:59 +01:00
|
|
|
overwrite: true
|
|
|
|
title: ${DRONE_TAG}
|
2020-01-14 19:29:57 +01:00
|
|
|
when:
|
|
|
|
event: tag
|
|
|
|
|
|
|
|
- name: publish:docker
|
2020-01-14 22:11:12 +01:00
|
|
|
image: plugins/docker
|
2020-01-14 19:29:57 +01:00
|
|
|
settings:
|
|
|
|
username:
|
|
|
|
from_secret: docker_user
|
|
|
|
password:
|
2020-01-16 21:53:59 +01:00
|
|
|
from_secret: docker_pass
|
2020-01-14 22:11:12 +01:00
|
|
|
repo: codercom/code-server
|
|
|
|
dockerfile: scripts/ci.dockerfile
|
2020-01-14 19:29:57 +01:00
|
|
|
tags:
|
|
|
|
- ${DRONE_TAG}
|
|
|
|
when:
|
2020-01-15 20:14:05 +01:00
|
|
|
event: tag
|
|
|
|
|
2020-02-04 18:32:45 +01:00
|
|
|
- name: publish:gcs
|
|
|
|
image: plugins/gcs
|
|
|
|
settings:
|
2020-02-04 20:27:46 +01:00
|
|
|
source: binary-upload
|
2020-02-04 18:32:45 +01:00
|
|
|
target: codesrv-ci.cdr.sh/
|
|
|
|
token:
|
|
|
|
from_secret: gcs-token
|
|
|
|
when:
|
|
|
|
event: tag
|
|
|
|
|
2020-01-14 19:29:57 +01:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: amd64:alpine
|
|
|
|
|
|
|
|
platform:
|
|
|
|
arch: amd64
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: cache:restore
|
|
|
|
image: node:12-alpine
|
|
|
|
commands:
|
2020-02-04 22:00:44 +01:00
|
|
|
- apk add libxkbfile-dev libsecret-dev build-base git bash python
|
2020-01-14 19:29:57 +01:00
|
|
|
- ./scripts/cacher.sh
|
|
|
|
|
2020-02-04 22:00:44 +01:00
|
|
|
- name: lint
|
|
|
|
image: node:12-alpine
|
|
|
|
commands:
|
|
|
|
- yarn lint
|
|
|
|
|
|
|
|
- name: test
|
|
|
|
image: node:12-alpine
|
|
|
|
commands:
|
|
|
|
- apk add openssl
|
|
|
|
- yarn test
|
|
|
|
|
2020-01-14 19:29:57 +01:00
|
|
|
- name: build
|
|
|
|
image: node:12-alpine
|
|
|
|
commands:
|
|
|
|
- apk add libxkbfile-dev libsecret-dev build-base git bash python
|
2020-02-04 22:00:44 +01:00
|
|
|
- timeout 50m ./scripts/ci.bash || echo 'Timed out or failed; continuing to preserve cache for the next run'
|
2020-01-14 19:29:57 +01:00
|
|
|
|
|
|
|
- name: cache:package
|
|
|
|
image: node:12-alpine
|
|
|
|
commands:
|
|
|
|
- ./scripts/cacher.sh
|
|
|
|
when:
|
|
|
|
event: push
|
|
|
|
|
|
|
|
- name: cache:push
|
|
|
|
image: plugins/gcs
|
|
|
|
settings:
|
|
|
|
source: cache-upload/
|
|
|
|
target: codesrv-ci.cdr.sh
|
|
|
|
token:
|
|
|
|
from_secret: gcs-token
|
|
|
|
when:
|
|
|
|
event: push
|
|
|
|
|
2020-02-04 22:00:44 +01:00
|
|
|
- name: test:build
|
2020-01-14 19:29:57 +01:00
|
|
|
image: node:12-alpine
|
|
|
|
commands:
|
2020-02-04 22:00:44 +01:00
|
|
|
- yarn test:build
|
2020-01-14 19:29:57 +01:00
|
|
|
|
|
|
|
- name: publish:github
|
|
|
|
image: plugins/github-release
|
|
|
|
settings:
|
|
|
|
api_key:
|
|
|
|
from_secret: github_token
|
|
|
|
files: release/*.tar.gz
|
2020-01-14 20:10:28 +01:00
|
|
|
draft: true
|
2020-01-16 21:53:59 +01:00
|
|
|
overwrite: true
|
|
|
|
title: ${DRONE_TAG}
|
2020-01-14 19:29:57 +01:00
|
|
|
when:
|
|
|
|
event: tag
|
|
|
|
|
2020-02-04 18:32:45 +01:00
|
|
|
- name: publish:gcs
|
|
|
|
image: plugins/gcs
|
|
|
|
settings:
|
2020-02-04 20:27:46 +01:00
|
|
|
source: binary-upload
|
2020-02-04 18:32:45 +01:00
|
|
|
target: codesrv-ci.cdr.sh/
|
|
|
|
token:
|
|
|
|
from_secret: gcs-token
|
|
|
|
when:
|
|
|
|
event: tag
|
|
|
|
|
2020-01-14 19:29:57 +01:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: arm64:linux
|
|
|
|
|
|
|
|
platform:
|
|
|
|
arch: arm64
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: cache:restore
|
|
|
|
image: node:12
|
|
|
|
commands:
|
2020-02-04 22:00:44 +01:00
|
|
|
- apt update && apt install -y build-essential git libsecret-1-dev libx11-dev libxkbfile-dev
|
2020-01-14 19:29:57 +01:00
|
|
|
- ./scripts/cacher.sh
|
|
|
|
|
2020-02-04 22:00:44 +01:00
|
|
|
- name: lint
|
|
|
|
image: node:12
|
|
|
|
commands:
|
|
|
|
- yarn lint
|
|
|
|
|
|
|
|
- name: test
|
|
|
|
image: node:12
|
|
|
|
commands:
|
|
|
|
- yarn test
|
|
|
|
|
2020-01-14 19:29:57 +01:00
|
|
|
- name: build
|
|
|
|
image: node:12
|
|
|
|
commands:
|
|
|
|
- apt update && apt install -y build-essential git libsecret-1-dev libx11-dev libxkbfile-dev
|
2020-02-04 22:00:44 +01:00
|
|
|
- timeout 50m ./scripts/ci.bash || echo 'Timed out or failed; continuing to preserve cache for the next run'
|
2020-01-14 19:29:57 +01:00
|
|
|
|
|
|
|
- name: cache:package
|
|
|
|
image: node:12
|
|
|
|
commands:
|
|
|
|
- ./scripts/cacher.sh
|
|
|
|
when:
|
|
|
|
event: push
|
|
|
|
|
|
|
|
- name: cache:push
|
|
|
|
image: plugins/gcs
|
|
|
|
settings:
|
|
|
|
source: cache-upload/
|
|
|
|
target: codesrv-ci.cdr.sh
|
|
|
|
token:
|
|
|
|
from_secret: gcs-token
|
|
|
|
when:
|
|
|
|
event: push
|
|
|
|
|
2020-02-04 22:00:44 +01:00
|
|
|
- name: test:build
|
2020-01-14 19:29:57 +01:00
|
|
|
image: node:12
|
|
|
|
commands:
|
2020-02-04 22:00:44 +01:00
|
|
|
- yarn test:build
|
2020-01-14 19:29:57 +01:00
|
|
|
|
|
|
|
- name: publish:github
|
|
|
|
image: plugins/github-release
|
|
|
|
settings:
|
|
|
|
api_key:
|
|
|
|
from_secret: github_token
|
|
|
|
files: release/*.tar.gz
|
2020-01-14 20:10:28 +01:00
|
|
|
draft: true
|
2020-01-16 21:53:59 +01:00
|
|
|
overwrite: true
|
|
|
|
title: ${DRONE_TAG}
|
2020-01-14 19:29:57 +01:00
|
|
|
when:
|
|
|
|
event: tag
|
|
|
|
|
|
|
|
- name: publish:docker
|
2020-01-14 22:11:12 +01:00
|
|
|
image: plugins/docker
|
2020-01-14 19:29:57 +01:00
|
|
|
settings:
|
|
|
|
username:
|
|
|
|
from_secret: docker_user
|
|
|
|
password:
|
2020-01-16 21:53:59 +01:00
|
|
|
from_secret: docker_pass
|
2020-01-14 22:11:12 +01:00
|
|
|
repo: codercom/code-server
|
|
|
|
dockerfile: scripts/ci.dockerfile
|
2020-01-14 19:29:57 +01:00
|
|
|
tags:
|
|
|
|
- ${DRONE_TAG}-arm64
|
|
|
|
when:
|
|
|
|
event: tag
|
2020-01-15 20:14:05 +01:00
|
|
|
|
2020-02-04 18:32:45 +01:00
|
|
|
- name: publish:gcs
|
|
|
|
image: plugins/gcs
|
|
|
|
settings:
|
2020-02-04 20:27:46 +01:00
|
|
|
source: binary-upload
|
2020-02-04 18:32:45 +01:00
|
|
|
target: codesrv-ci.cdr.sh/
|
|
|
|
token:
|
|
|
|
from_secret: gcs-token
|
|
|
|
when:
|
|
|
|
event: tag
|
|
|
|
|
2020-01-15 20:14:05 +01:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
2020-01-14 19:29:57 +01:00
|
|
|
name: arm64:alpine
|
2020-01-15 20:14:05 +01:00
|
|
|
|
|
|
|
platform:
|
|
|
|
arch: arm64
|
|
|
|
|
|
|
|
steps:
|
2020-01-14 19:29:57 +01:00
|
|
|
- name: cache:restore
|
|
|
|
image: node:12-alpine
|
|
|
|
commands:
|
2020-02-04 22:00:44 +01:00
|
|
|
- apk add libxkbfile-dev libsecret-dev build-base git bash python
|
2020-01-14 19:29:57 +01:00
|
|
|
- ./scripts/cacher.sh
|
|
|
|
|
2020-02-04 22:00:44 +01:00
|
|
|
- name: lint
|
|
|
|
image: node:12-alpine
|
|
|
|
commands:
|
|
|
|
- yarn lint
|
|
|
|
|
|
|
|
- name: test
|
|
|
|
image: node:12-alpine
|
|
|
|
commands:
|
|
|
|
- apk add openssl
|
|
|
|
- yarn test
|
|
|
|
|
2020-01-14 19:29:57 +01:00
|
|
|
- name: build
|
|
|
|
image: node:12-alpine
|
|
|
|
commands:
|
|
|
|
- apk add libxkbfile-dev libsecret-dev build-base git bash python
|
2020-02-04 22:00:44 +01:00
|
|
|
- timeout 50m ./scripts/ci.bash || echo 'Timed out or failed; continuing to preserve cache for the next run'
|
2020-01-14 19:29:57 +01:00
|
|
|
|
|
|
|
- name: cache:package
|
|
|
|
image: node:12-alpine
|
|
|
|
commands:
|
|
|
|
- ./scripts/cacher.sh
|
|
|
|
when:
|
|
|
|
event: push
|
|
|
|
|
|
|
|
- name: cache:push
|
|
|
|
image: plugins/gcs
|
|
|
|
settings:
|
|
|
|
source: cache-upload/
|
|
|
|
target: codesrv-ci.cdr.sh
|
|
|
|
token:
|
|
|
|
from_secret: gcs-token
|
|
|
|
when:
|
|
|
|
event: push
|
|
|
|
|
2020-02-04 22:00:44 +01:00
|
|
|
- name: test:build
|
2020-01-14 19:29:57 +01:00
|
|
|
image: node:12-alpine
|
|
|
|
commands:
|
2020-02-04 22:00:44 +01:00
|
|
|
- yarn test:build
|
2020-01-14 19:29:57 +01:00
|
|
|
|
|
|
|
- name: publish:github
|
|
|
|
image: plugins/github-release
|
|
|
|
settings:
|
|
|
|
api_key:
|
|
|
|
from_secret: github_token
|
|
|
|
files: release/*.tar.gz
|
2020-01-14 20:10:28 +01:00
|
|
|
draft: true
|
2020-01-16 21:53:59 +01:00
|
|
|
overwrite: true
|
|
|
|
title: ${DRONE_TAG}
|
2020-01-14 19:29:57 +01:00
|
|
|
when:
|
|
|
|
event: tag
|
|
|
|
|
2020-02-04 18:32:45 +01:00
|
|
|
- name: publish:gcs
|
|
|
|
image: plugins/gcs
|
|
|
|
settings:
|
2020-02-04 20:27:46 +01:00
|
|
|
source: binary-upload
|
2020-02-04 18:32:45 +01:00
|
|
|
target: codesrv-ci.cdr.sh/
|
|
|
|
token:
|
|
|
|
from_secret: gcs-token
|
|
|
|
when:
|
|
|
|
event: tag
|