Skip to content

Commit

Permalink
Merge pull request #389 from WormBase/enable-uncached-prod-build
Browse files Browse the repository at this point in the history
Enable uncached prod build
  • Loading branch information
mluypaert authored Jan 31, 2024
2 parents af00ab3 + e8b7496 commit 7f0f81c
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -105,13 +105,22 @@ build/datomic-pro-1.0.6165.zip:

.PHONY: build-docker-image
build-docker-image: build/ ENV.VERSION_TAG ${STORE_SECRETS_FILE} build/datomic-pro-1.0.6165.zip \
$(call print-help,build,\
$(call print-help,build-docker-image,\
Build the docker image from the current git revision.)
@docker build -t ${ECR_REPO_NAME}:${VERSION_TAG} \
$(eval DOCKER_CMD := docker build -t ${ECR_REPO_NAME}:${VERSION_TAG})
ifeq (${APP_PROFILE},prod)
$(eval DOCKER_CMD := ${DOCKER_CMD} --no-cache --pull)
endif
@${DOCKER_CMD} \
--secret id=make-secrets-file,src=${STORE_SECRETS_FILE} \
.
@rm ${STORE_SECRETS_FILE}

.PHONY: docker-build-image
docker-build-image: build-docker-image \
$(call print-help,docker-build-image,\
Alias for build-docker-image.)

.PHONY: build-ui
build-ui: ENV.GOOGLE_OAUTH_CLIENT_ID \
$(call print-help,build-ui,\
Expand Down

0 comments on commit 7f0f81c

Please sign in to comment.