Skip to content

Commit 5721360

Browse files
committed
[Build] Make release in docker
1 parent 1131c6b commit 5721360

File tree

1 file changed

+21
-2
lines changed

1 file changed

+21
-2
lines changed

Makefile

+21-2
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,30 @@ update-changelog:
4646
git push
4747
.PHONY: .commit-and-push-changelog
4848

49-
release: default update-changelog .commit-and-push-changelog
49+
.release-in-docker: default update-changelog .commit-and-push-changelog
50+
[ -f '/home/cukebot/import-gpg-key.sh' ] && /home/cukebot/import-gpg-key.sh
5051
mvn --batch-mode release:clean release:prepare -DautoVersionSubmodules=true -Darguments="-DskipTests=true -DskipITs=true -Darchetype.test.skip=true"
5152
git checkout "v$(NEW_VERSION)"
5253
mvn deploy -P-examples -P-compatibility -Psign-source-javadoc -DskipTests=true -DskipITs=true -Darchetype.test.skip=true
5354
git checkout $(CURRENT_BRANCH)
5455
git fetch
55-
.PHONY: release
56+
.PHONY: .release-in-docker
5657

58+
release:
59+
[ -d '../secrets' ] || git clone keybase://team/cucumberbdd/secrets ../secrets
60+
git -C ../secrets pull
61+
docker run \
62+
--volume "${shell pwd}":/app \
63+
--volume "${shell pwd}/../secrets/import-gpg-key.sh":/home/cukebot/import-gpg-key.sh \
64+
--volume "${shell pwd}/../secrets/codesigning.key":/home/cukebot/codesigning.key \
65+
--volume "${shell pwd}/../secrets/.ssh":/home/cukebot/.ssh \
66+
--volume "${shell pwd}/../secrets/.gem":/home/cukebot/.gem \
67+
--volume "${shell pwd}/../secrets/.npmrc":/home/cukebot/.npmrc \
68+
--volume "${HOME}/.m2"/repository:/home/cukebot/.m2/repository \
69+
--volume "${HOME}/.gitconfig":/home/cukebot/.gitconfig \
70+
--env-file ../secrets/secrets.list \
71+
--user 1000 \
72+
--rm \
73+
-it cucumber/cucumber-build:latest \
74+
make .release-in-docker
75+
.PHONY: release

0 commit comments

Comments
 (0)