Prepare for multiplatform support
This commit is contained in:
parent
a1a10d284f
commit
9beaa32cdf
1 changed files with 7 additions and 2 deletions
9
Makefile
9
Makefile
|
@ -1,11 +1,16 @@
|
|||
PLATFORMS=linux/amd64
|
||||
|
||||
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 .
|
||||
docker buildx rm actions-docker || true
|
||||
docker buildx create --name actions-docker --bootstrap --use
|
||||
docker buildx build --push --platform ${PLATFORMS} -t git.staropensource.de/staropensource/actions-docker:latest -f Dockerfile .
|
||||
docker buildx build --push --platform ${PLATFORMS} -t git.staropensource.de/staropensource/actions-docker:java -f Dockerfile.java .
|
||||
docker buildx rm actions-docker
|
||||
upload: build
|
||||
docker push git.staropensource.de/staropensource/actions-docker:latest
|
||||
docker push git.staropensource.de/staropensource/actions-docker:java
|
||||
|
|
Loading…
Reference in a new issue