summaryrefslogtreecommitdiff
path: root/pkg/docker/Makefile
diff options
context:
space:
mode:
authorTina Müller <cpan2@tinita.de>2020-05-29 23:07:16 +0200
committerIngy döt Net <ingy@ingy.net>2020-06-22 10:21:14 -0700
commitacd6f6f014c25e46363e718381e0b35205df2d83 (patch)
tree59c59fd0ed36780185320f9748ea3e6054887297 /pkg/docker/Makefile
parent2c891fc7a770e8ba2fec34fc6b545c672beb37e6 (diff)
downloadlibyaml-git-release/test.tar.gz
Add workflow for creating release tarballsrelease/test
Also minor cleanup of .github/workflows/main.yml
Diffstat (limited to 'pkg/docker/Makefile')
-rw-r--r--pkg/docker/Makefile23
1 files changed, 23 insertions, 0 deletions
diff --git a/pkg/docker/Makefile b/pkg/docker/Makefile
new file mode 100644
index 0000000..8a53ed3
--- /dev/null
+++ b/pkg/docker/Makefile
@@ -0,0 +1,23 @@
+DOCKER_IMAGE ?= yamlio/libyaml-dev
+
+build:
+ docker build -t $(DOCKER_IMAGE) .
+
+run: build
+ docker run -it --rm $(DOCKER_IMAGE) bash
+
+prepare-git:
+ rm -rf output/libyaml.git
+ git clone ../../.git output/libyaml.git
+
+libyaml-dist: libyaml-dist-ci
+
+libyaml-dist-ci: prepare-git
+ docker run --rm -u $$(id -u) \
+ -v"$$PWD/output:/output" \
+ -v"$$PWD/scripts:/scripts" \
+ $(DOCKER_IMAGE) /scripts/libyaml-dist.sh
+
+clean:
+ rm -rf output/libyaml.git
+ rm -rf output/yaml-*.*