Add upload-only target
This commit is contained in:
parent
ba1f2b9d75
commit
d264d68aee
1 changed files with 3 additions and 1 deletions
4
Makefile
4
Makefile
|
@ -4,6 +4,7 @@ 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"
|
||||
build:
|
||||
docker buildx rm actions-docker || true
|
||||
|
@ -11,7 +12,8 @@ build:
|
|||
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
|
||||
upload: build
|
||||
upload: build upload-only
|
||||
upload-only:
|
||||
docker push git.staropensource.de/infrastructure/actions-docker:latest
|
||||
docker push git.staropensource.de/infrastructure/actions-docker:java
|
||||
prune-cache:
|
||||
|
|
Loading…
Reference in a new issue