2024-08-18 17:27:33 +02:00
|
|
|
PLATFORMS=linux/amd64
|
|
|
|
|
2024-08-18 16:55:19 +02:00
|
|
|
help:
|
2024-12-02 21:56:16 +01:00
|
|
|
@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:
|
2024-12-02 21:56:16 +01:00
|
|
|
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:
|
2024-12-02 21:56:16 +01:00
|
|
|
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:
|
2024-12-02 21:56:16 +01:00
|
|
|
docker buildx prune -af
|