diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 54ccc38..38887b8 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -30,6 +30,7 @@ test: build: stage: build script: + - if [ -f init ]; then chmod 500 init; fi - 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 push ${CI_REGISTRY_IMAGE}:${VERSION} diff --git a/Dockerfile b/Dockerfile index 1ebbb54..6fa49ad 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,7 +11,7 @@ RUN apt-get update && apt-get install certbot -yyq \ EXPOSE 80 443 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. #VOLUME [ "/etc/nginx/conf.d", "/etc/nginx/default.d" ]