1
0
mirror of https://git.tuxpa.in/a/code-server.git synced 2024-12-27 04:35:25 +00:00
code-server-2/ci
2021-06-01 22:49:03 +05:30
..
build chore: update node to v14 (#3481) 2021-06-01 22:49:03 +05:30
dev docs: remove toc from changelog (#3466) 2021-05-27 16:16:54 +00:00
helm-chart chore(release): bump version to 3.10.2 2021-05-21 16:04:55 -07:00
release-image chore: cross-compile docker images with buildx (#3503) 2021-05-28 16:51:41 +00:00
steps chore: cross-compile docker images with buildx (#3503) 2021-05-28 16:51:41 +00:00
lib.sh v3.10.1 (#3406) 2021-05-17 14:59:41 -05:00
README.md chore: cross-compile docker images with buildx (#3503) 2021-05-28 16:51:41 +00:00

ci

This directory contains scripts used for code-server's continuous integration infrastructure.

Some of these scripts contain more detailed documentation and options in header comments.

Any file or directory in this subdirectory should be documented here.

  • ./ci/lib.sh
    • Contains code duplicated across these scripts.

Publishing a release

  1. Run yarn release:prep and type in the new version i.e. 3.8.1
  2. GitHub actions will generate the npm-package, release-packages and release-images artifacts.
    1. You do not have to wait for these.
  3. Run yarn release:github-draft to create a GitHub draft release from the template with the updated version.
    1. Summarize the major changes in the release notes and link to the relevant issues.
    2. Change the @ to target the version branch. Example: v3.9.0 @ Target: v3.9.0
  4. Wait for the artifacts in step 2 to build.
  5. Run yarn release:github-assets to download the release-packages artifact.
    • It will upload them to the draft release.
  6. Run some basic sanity tests on one of the released packages.
    • Especially make sure the terminal works fine.
  7. Publish the release and merge the PR.
    1. CI will automatically grab the artifacts and then:
      1. Publish the NPM package from npm-package.
      2. Publish the Docker Hub image from release-images.
  8. Update the AUR package.
  9. Wait for the npm package to be published.

dev

This directory contains scripts used for the development of code-server.

build

This directory contains the scripts used to build and release code-server. You can disable minification by setting MINIFY=.

release-image

This directory contains the release docker container image.

  • ./ci/steps/build-docker-image.sh
    • Builds the release containers with tags codercom/code-server-$ARCH:$VERSION for amd64 and arm64 with docker buildx.
    • Assumes debian releases are ready in ./release-packages.

images

This directory contains the images for CI.

steps

This directory contains the scripts used in CI. Helps avoid clobbering the CI configuration.