C++11 library providing functionality common to all adapters.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
756 B

  1. CURRENT_DISTRO=$(shell basename $(shell pwd))
  2. LIBPEPADAPTER_VERSION=$(shell git rev-parse --short=8 HEAD)
  3. IMAGE_NAME=${DOCKER_REGISTRY_HOST}/pep-$(CURRENT_DISTRO)-libpepadapter
  4. DOCKERFILE=libpEpAdapter.$(CURRENT_DISTRO).Dockerfile
  5. all:
  6. -docker pull $(IMAGE_NAME):latest
  7. cd ../../ && docker build --build-arg CURRENT_DISTRO=$(CURRENT_DISTRO) \
  8. --build-arg DOCKER_REGISTRY_HOST=${DOCKER_REGISTRY_HOST} \
  9. --build-arg LIBPEPADAPTER_VERSION=$(LIBPEPADAPTER_VERSION) \
  10. --cache-from $(IMAGE_NAME):latest \
  11. --tag=$(IMAGE_NAME):$(LIBPEPADAPTER_VERSION) \
  12. --tag=$(IMAGE_NAME):latest \
  13. -f scripts/${CURRENT_DISTRO}/$(DOCKERFILE) .
  14. docker push $(IMAGE_NAME):${LIBPEPADAPTER_VERSION}
  15. docker push $(IMAGE_NAME):latest