Files
fdroid-repository/Makefile
Philippe Caseiro 40902f8729
All checks were successful
Build and Push Image / Build and push image (push) Successful in 24m39s
feat(docker): updating android build-tools to version 36
2025-07-02 09:33:58 +02:00

40 lines
1.2 KiB
Makefile

SSH_PUBLIC_KEY := $(shell cat ~/.ssh/id_rsa.pub)
build:
docker build \
-m 4g \
-t fdroid-repository:latest \
./
run:
docker run -it --rm \
-p 2222:2222 \
-p 8080:8080 \
--name fdroid-repo \
-v "$(PWD)/data/repo:/fdroid/repo" \
-v "$(PWD)/data/archive:/fdroid/archive" \
-v "$(PWD)/data/metadata:/fdroid/metadata" \
-v "$(PWD)/data/keystore:/fdroid/keystore" \
-e "FDROID_REPO_SCHEME=http" \
-e "FDROID_REPO_HOST=127.0.0.1:8080" \
-e "FDROID_REPO_NAME=My local repo" \
-e "FDROID_REPO_DESCRIPTION=My repo description" \
-e "FDROID_KEYSTORE_PASS=mykeystorepass" \
-e "FDROID_KEYSTORE_KEYPASS=mykeystorekeypass" \
-e "FDROID_KEYSTORE_KEY_ALIAS=fdroidkey" \
-e "FDROID_REPO_EMAIL=contact@cadoles.com" \
-e "SSH_PUBLIC_KEY=$(SSH_PUBLIC_KEY)" \
-e "FDROID_KEYSTORE_DNAME=CN=cadoles.com, OU=ID, O=Cadoles, L=Dijon, S=France, C=FR" \
fdroid-repository:latest \
$(DOCKER_CMD)
scan:
trivy image --format table fdroid-repository:latest
release:
docker image tag fdroid-repository:latest reg.cadoles.com/cadoles/fdroid-repository:latest
docker push reg.cadoles.com/cadoles/fdroid-repository:latest
clean:
docker rmi fdroid-repository
.PHONY: build