Updated cron label and nginx image

This commit is contained in:
Deon George 2018-02-28 00:27:13 +11:00
parent fbb05f15df
commit 194d5fe7bd
2 changed files with 2 additions and 1 deletions

View File

@ -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}

View File

@ -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" ]