From a68c3973b8c7fb6d13bfe774928eb8d936344f45 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Petr=20=C5=A0tetiar?= Date: Mon, 14 Sep 2020 08:06:25 +0200 Subject: [PATCH] ci: populate GIT_VERSION variable in index.html MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Petr Å tetiar --- .gitlab-ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index fdbe77d..a9537fb 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -52,7 +52,7 @@ build site on Python 3.8: stage: pre-build image: debian:9 before_script: - - apt-get update; apt-get install -y make python3 ca-certificates + - apt-get update; apt-get install -y make python3 ca-certificates git artifacts: expire_in: 1 week when: always @@ -63,12 +63,14 @@ build site for target environment using scrape method: extends: .build site script: - cp -R ./www ./build + - sed -i "s;%GIT_VERSION%;$(git describe --tags);" build/index.html - misc/collect.py scrape https://downloads.openwrt.org build build site for target environment using scan method: extends: .build site script: - cp -R ./www ./build + - sed -i "s;%GIT_VERSION%;$(git describe --tags);" build/index.html - misc/collect.py scan downloads.openwrt.org tests/profiles build .test site: -- 2.30.2