-
Notifications
You must be signed in to change notification settings - Fork 6
/
Makefile
50 lines (44 loc) · 1.3 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
SHELL := /bin/bash -o pipefail
DOCKER_IMAGE := jsii/superchain
DOCKER_TAG := latest
DOCKER_WORKDIR := /workdir
build:
docker run \
--workdir ${DOCKER_WORKDIR} \
--volume ${PWD}:${DOCKER_WORKDIR} \
${DOCKER_IMAGE}:${DOCKER_TAG} \
/bin/bash -c "rm -rf dist && npm i && npm run package"
publish-npm:
docker run \
--workdir ${DOCKER_WORKDIR} \
--volume ${PWD}:${DOCKER_WORKDIR} \
--env NPM_TOKEN \
${DOCKER_IMAGE}:${DOCKER_TAG} \
/bin/bash -c "npx jsii-release-npm dist/js"
publish-nuget:
docker run \
--workdir ${DOCKER_WORKDIR} \
--volume ${PWD}:${DOCKER_WORKDIR} \
--env NUGET_API_KEY \
${DOCKER_IMAGE}:${DOCKER_TAG} \
/bin/bash -c "npx jsii-release-nuget dist/dotnet"
publish-pypi:
docker run \
--workdir ${DOCKER_WORKDIR} \
--volume ${PWD}:${DOCKER_WORKDIR} \
--env TWINE_USERNAME=__token__ \
--env TWINE_PASSWORD=$(PYPI_TOKEN) \
${DOCKER_IMAGE}:${DOCKER_TAG} \
/bin/bash -c "npx jsii-release-pypi dist/python"
publish-maven:
docker run \
--workdir ${DOCKER_WORKDIR} \
--volume ${PWD}:${DOCKER_WORKDIR} \
--env MAVEN_STAGING_PROFILE_ID \
--env MAVEN_USERNAME \
--env MAVEN_PASSWORD \
--env MAVEN_GPG_PRIVATE_KEY \
--env MAVEN_GPG_PRIVATE_KEY_PASSPHRASE \
--env MAVEN_DRYRUN \
${DOCKER_IMAGE}:${DOCKER_TAG} \
/bin/bash -c "npx jsii-release-maven dist/java"