Skip to content
Snippets Groups Projects
Commit 95821cdb authored by skorpy's avatar skorpy :construction_worker:
Browse files

gitlab-ci: add varnish lint

parent 5946906c
No related branches found
No related tags found
1 merge request!484Grafana: Use Docker
......@@ -31,6 +31,19 @@ lint:yamllint:
stage: lint
script: yamllint .
lint:varnish:
image:
name: docker.chaos.expert/ffffm/docker-varnish
services:
- name: grafana/grafana
alias: grafana
stage: lint
script:
- varnishd -C -f $CI_BUILDS_DIR/$CI_PROJECT_PATH/grafana/files/varnish-grafana.vcl
rules:
- changes:
- grafana/files/varnish-grafana.vcl
highstate:debug:
image: docker.chaos.expert/ffffm/docker-salt-minion:latest
stage: highstate
......
......@@ -12,6 +12,7 @@ sub vcl_recv {
if (req.method != "GET" && req.method != "HEAD") {
return (pass);
}
# Goodbye incoming cookies:
unset req.http.Cookie;
unset req.http.Accept-Language;
......
......@@ -10,6 +10,9 @@ varnish:
- file: /etc/apt/sources.list.d/varnish.list
- clean_file: true
pkg.installed:
- pkgs:
- varnish
- varnish-dev
- version: '6.4.*'
service.running:
- enable: True
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment