File tree 1 file changed +3
-2
lines changed 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ PUBLISHCONF=$(BASEDIR)/publishconf.py
11
11
12
12
S3_BUCKET =www.codependentcodr.com
13
13
DOCKER_IMAGE_NAME =codependentcodr
14
+ DOCKER_IMAGE_TAGS := $(shell docker images --format '{{.Repository}}:{{.Tag}}' | grep '$(DOCKER_IMAGE_NAME ) ')
14
15
15
16
DEBUG ?= 0
16
17
ifeq ($(DEBUG ) , 1)
50
51
51
52
clean :
52
53
[ ! -d $( OUTPUTDIR) ] || rm -rf $(OUTPUTDIR )
53
- docker rmi $(DOCKER_IMAGE_NAME ) :latest || true
54
+ docker rmi $(DOCKER_IMAGE_TAGS ) || true
54
55
55
56
regenerate :
56
57
$(PELICAN ) -r $(INPUTDIR ) -o $(OUTPUTDIR ) -s $(CONFFILE ) $(PELICANOPTS )
@@ -84,7 +85,7 @@ stopserver:
84
85
publish :
85
86
$(PELICAN ) $(INPUTDIR ) -o $(OUTPUTDIR ) -s $(PUBLISHCONF ) $(PELICANOPTS )
86
87
87
- s3_upload : publish
88
+ s3_upload : publish markdownlint pylint
88
89
aws s3 sync $(OUTPUTDIR ) s3://$(S3_BUCKET ) --delete $(S3OPTS )
89
90
90
91
markdownlint : dockerbuild
You can’t perform that action at this time.
0 commit comments