mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-19 01:06:27 +00:00
package.mk: Adjust the targe sequence to avoid early abort
Current package.mk will operate on the first dependence object 'check-dirty', which will result the make process abort earlier with below message: pkg/package.mk:60: *** Your repository is not clean. Will not push package image. Stop. This is not expected behavior since we have no chance to build a docker image locally in case of the user has no intention to push that image. This patch adjust the dependece order for the default target, thus we can build the docker image locally but can't push that image since we're in a dirty git repository. Signed-off-by: Dennis Chen <dennis.chen@arm.com>
This commit is contained in:
parent
f1bd7c2e4d
commit
d9e5e41df3
@ -60,14 +60,14 @@ ifneq ($(DIRTY),)
|
||||
$(error Your repository is not clean. Will not push package image)
|
||||
endif
|
||||
|
||||
push: check-dirty tag
|
||||
push: tag check-dirty
|
||||
docker pull $(TAG) || docker push $(TAG)
|
||||
ifneq ($(RELEASE),)
|
||||
docker tag $(TAG) $(ORG)/$(IMAGE):$(RELEASE)
|
||||
docker push $(ORG)/$(IMAGE):$(RELEASE)
|
||||
endif
|
||||
|
||||
forcepush: check-dirty forcetag
|
||||
forcepush: forcetag check-dirty
|
||||
docker push $(TAG)
|
||||
ifneq ($(RELEASE),)
|
||||
docker tag $(TAG) $(ORG)/$(IMAGE):$(RELEASE)
|
||||
|
Loading…
Reference in New Issue
Block a user