Updated cron label and nginx image
This commit is contained in:
parent
fbb05f15df
commit
194d5fe7bd
@ -30,6 +30,7 @@ test:
|
|||||||
build:
|
build:
|
||||||
stage: build
|
stage: build
|
||||||
script:
|
script:
|
||||||
|
- if [ -f init ]; then chmod 500 init; fi
|
||||||
- docker pull ${CI_REGISTRY_IMAGE}:${CACHETAG} || true
|
- docker pull ${CI_REGISTRY_IMAGE}:${CACHETAG} || true
|
||||||
- docker build --cache-from ${CI_REGISTRY_IMAGE}:${CACHETAG} -t ${CI_REGISTRY_IMAGE}:${VERSION} -t ${CI_REGISTRY_IMAGE}:${CACHETAG} .
|
- docker build --cache-from ${CI_REGISTRY_IMAGE}:${CACHETAG} -t ${CI_REGISTRY_IMAGE}:${VERSION} -t ${CI_REGISTRY_IMAGE}:${CACHETAG} .
|
||||||
- docker push ${CI_REGISTRY_IMAGE}:${VERSION}
|
- docker push ${CI_REGISTRY_IMAGE}:${VERSION}
|
||||||
|
@ -11,7 +11,7 @@ RUN apt-get update && apt-get install certbot -yyq \
|
|||||||
EXPOSE 80 443
|
EXPOSE 80 443
|
||||||
|
|
||||||
COPY renew.sh /usr/local/sbin
|
COPY renew.sh /usr/local/sbin
|
||||||
LABEL cron.weekly root:/usr/local/sbin/renew.sh
|
LABEL cron.container.weekly root:/usr/local/sbin/renew.sh
|
||||||
|
|
||||||
# Expose our web root and log directories log.
|
# Expose our web root and log directories log.
|
||||||
#VOLUME [ "/etc/nginx/conf.d", "/etc/nginx/default.d" ]
|
#VOLUME [ "/etc/nginx/conf.d", "/etc/nginx/default.d" ]
|
||||||
|
Loading…
Reference in New Issue
Block a user