push the image when running the post cloudbuild job

Signed-off-by: cpanato <ctadeu@gmail.com>
This commit is contained in:
cpanato
2022-06-01 09:43:32 +02:00
parent af8cc0d4dd
commit eccf91164c
2 changed files with 10 additions and 4 deletions
+3
View File
@@ -71,6 +71,9 @@ container-image: ## Build a container image for the preview of the website
--tag $(CONTAINER_IMAGE) \
--build-arg HUGO_VERSION=$(HUGO_VERSION)
container-push: container-image ## Push container image for the preview of the website
$(CONTAINER_ENGINE) push $(CONTAINER_IMAGE)
container-build: module-check
$(CONTAINER_RUN) --read-only --mount type=tmpfs,destination=/tmp,tmpfs-mode=01777 $(CONTAINER_IMAGE) sh -c "npm ci && hugo --minify --environment development"