actions-docker/Makefile

21 lines
983 B
Makefile
Raw Permalink Normal View History

2024-08-18 17:27:33 +02:00
PLATFORMS=linux/amd64
2024-08-18 16:55:19 +02:00
help:
@echo "make help Displays help"
@echo " build Builds the image"
@echo " upload Builds and uploads the image"
@echo " upload-only Uploads the image only, in case it fails"
@echo " prune-cache Prunes the entire build cache"
2024-08-18 16:55:19 +02:00
build:
docker buildx rm actions-docker || true
docker buildx create --bootstrap --name actions-docker --platform ${PLATFORMS}
docker buildx build --builder actions-docker --load --platform ${PLATFORMS} --target base -t git.staropensource.de/infrastructure/actions-docker:latest .
docker buildx build --builder actions-docker --load --platform ${PLATFORMS} --target java -t git.staropensource.de/infrastructure/actions-docker:java .
docker buildx rm actions-docker
2024-12-02 21:53:42 +01:00
upload: build upload-only
upload-only:
docker push git.staropensource.de/infrastructure/actions-docker:latest
docker push git.staropensource.de/infrastructure/actions-docker:java
2024-08-18 16:56:39 +02:00
prune-cache:
docker buildx prune -af