Add prune-cache job

This commit is contained in:
JeremyStar™ 2024-08-18 16:56:39 +02:00
parent ebf62cdacd
commit a1a10d284f
Signed by: JeremyStarTM
GPG key ID: E366BAEF67E4704D

View file

@ -2,9 +2,12 @@ help:
@echo "make help Displays help"
@echo " build Builds the image"
@echo " upload Builds and uploads the image"
@echo " prune-cache Prunes the entire build cache"
build:
docker buildx build -t git.staropensource.de/staropensource/actions-docker:latest -f Dockerfile .
docker buildx build -t git.staropensource.de/staropensource/actions-docker:java -f Dockerfile.java .
upload: build
docker push git.staropensource.de/staropensource/actions-docker:latest
docker push git.staropensource.de/staropensource/actions-docker:java
prune-cache:
docker buildx prune -af