Skip to content

Commit 1cb00c8

Browse files
author
Alexandru Cheltuitor
committed
Update CI makefile
1 parent 81d4794 commit 1cb00c8

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Makefile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,17 @@ ifeq ($(branch), latest)
1212
endif
1313

1414

15-
## Make remote image form a branch make image branch=<branchName> (master default)
1615
IMAGE_URL ?= $(CI_REGISTRY)/ubuntu:latest
1716
ifndef CI_REGISTRY
1817
IMAGE_URL = 'ubuntu:latest'
1918
endif
2019

20+
## Make remote image form a branch make image branch=<branchName> (master default)
21+
image: requirements.txt copy-app
22+
docker build -t $(NAME_IMAGE):$(TAG_IMAGE) .
23+
docker push $(NAME_IMAGE):$(TAG_IMAGE)
24+
docker tag $(NAME_IMAGE):$(TAG_IMAGE) $(NAME_IMAGE):$(TAG_IMAGE)
25+
2126
## Copy the current app and remove some items we don't need inside the image
2227
# - .git -> huge and doesn't provide anything relevant
2328
# - .env -> it's private

0 commit comments

Comments
 (0)