include .env export build: docker buildx build --platform linux/amd64 -t ${IMAGE_NAME}:${VERSION}-${ENV} --build-arg APP_NAME=${IMAGE_NAME} . docker tag ${IMAGE_NAME}:${VERSION}-${ENV} ${REGISTRY}/${DEPARTMENT}/${IMAGE_NAME}:${VERSION}-${ENV} docker push ${REGISTRY}/${DEPARTMENT}/${IMAGE_NAME}:${VERSION}-${ENV} docker tag ${IMAGE_NAME}:${VERSION}-${ENV} ${REGISTRY}/${DEPARTMENT}/${ENV}/${IMAGE_NAME}:latest docker push ${REGISTRY}/${DEPARTMENT}/${ENV}/${IMAGE_NAME}:latest deploy: docker-compose pull && docker-compose up -d && docker image prune -f .PHONY: build deploy