d2/ci/release
Gavin Nishizawa a0515da60b
changelog
2022-12-17 20:47:14 -08:00
..
build release: gitignore 2022-11-14 11:08:23 -08:00
builders aws_ensure: Update 2022-12-06 04:56:34 -08:00
changelogs changelog 2022-12-17 20:47:14 -08:00
template deps: update [ci-base] [ci-force] 2022-12-13 03:29:30 -08:00
_build.sh _build.sh: Update 2022-12-08 02:25:44 -08:00
_install.sh install.sh: Update for tap rename 2022-12-07 18:45:10 -08:00
build.sh ci: Ensure lockfile_ssh is used in a subshell 2022-12-08 04:00:08 -08:00
build_docker.sh ci: Many fixes and updates 2022-11-20 03:34:01 -08:00
gen_install.sh ci: Update gen_install and gen_template_lib 2022-12-05 22:15:58 -08:00
gen_template_lib.sh ci: Update gen_install and gen_template_lib 2022-12-05 22:15:58 -08:00
README.md ci/release: More fixes 2022-11-14 05:50:31 -08:00
release.sh ci/release: More fixes 2022-11-14 05:50:31 -08:00

release

_install.sh

The template for the install script in the root of the repository.

gen_install.sh

Generates the install.sh script in the root of the repository by prepending the libraries it depends on from ../sub/lib.

release.sh

  • ./release.sh is the top level script to generate a new release. Run with --help for usage.

build.sh

  • ./build.sh builds the release archives for each platform into ./build//*.tar.gz Run with --help for usage.

note: Remember for production releases you need to set the $TSTRUCT_OS_ARCH_BUILDER variables as we must compile d2 directly on each release target to include dagre. See https://github.com/terrastruct/d2/issues/31

Use --host-only to build only the release for the host's OS-ARCH pair.

build_docker.sh

Helper script called by build.sh to build D2 on each linux runner inside Docker. The Dockerfile is in ./builders/Dockerfile

_build.sh

Called by build.sh (with --local or macOS) or build_docker.sh (on linux) to create the release archive.

Do not invoke directly. If you want to produce a build for a single platform run build.sh as so:

 # To only build the linux-amd64 release.
./build.sh --run=linux-amd64
 # To only build the linux-amd64 release locally.
./build.sh --local --run=linux-amd64