<commit_before>VERSION ?= 0.4.0
CACHE ?= --no-cache=1
FULLVERSION ?= ${VERSION}
archs = s390x arm32v7 amd64 i386 arm64v8 arm32v6

.PHONY: all build publish latest
all: build publish latest
build:
	touch qemu-t-static
	rm qemu-*-static
	cp /usr/bin/qemu-arm-static .
	cp /usr/bin/qemu-s390x-static .
	cp /usr/bin/qemu-aarch64-static .
	$(foreach arch,$(archs), \
		cat Dockerfile | sed "s/FROM python:2-alpine/FROM ${arch}\/python:2-alpine/g" > .Dockerfile; \
		docker build -t jaymoulin/google-cloudprint:${VERSION}-$(arch) -f .Dockerfile ${CACHE} .;\
	)
publish:
	docker push jaymoulin/google-cloudprint
	cat manifest.yml | sed "s/\$$VERSION/${VERSION}/g" > manifest.yaml
	cat manifest.yaml | sed "s/\$$FULLVERSION/${FULLVERSION}/g" > manifest2.yaml
	mv manifest2.yaml manifest.yaml
	manifest-tool push from-spec manifest.yaml<commit_msg>Update versions<commit_after>VERSION ?= 0.4.1
CACHE ?= --no-cache=1
FULLVERSION ?= ${VERSION}
archs = s390x arm32v7 amd64 i386 arm64v8 arm32v6

.PHONY: all build publish latest
all: build publish latest
build:
	touch qemu-t-static
	rm qemu-*-static
	cp /usr/bin/qemu-arm-static .
	cp /usr/bin/qemu-s390x-static .
	cp /usr/bin/qemu-aarch64-static .
	$(foreach arch,$(archs), \
		cat Dockerfile | sed "s/FROM python:2-alpine/FROM ${arch}\/python:2-alpine/g" > .Dockerfile; \
		docker build -t jaymoulin/google-cloudprint:${VERSION}-$(arch) -f .Dockerfile ${CACHE} .;\
	)
publish:
	docker push jaymoulin/google-cloudprint
	cat manifest.yml | sed "s/\$$VERSION/${VERSION}/g" > manifest.yaml
	cat manifest.yaml | sed "s/\$$FULLVERSION/${FULLVERSION}/g" > manifest2.yaml
	mv manifest2.yaml manifest.yaml
	manifest-tool push from-spec manifest.yaml
{'fraction_non_alphanumeric': 0.15595238095238095, 'fraction_numerical': 0.03571428571428571, 'mean_word_length': 3.973372781065089, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3149126', 'n_tokens_mistral': 678, 'n_tokens_neox': 639, 'n_words': 140}