From c1b68630bce106c90a88c9629a9fad6edc655cc0 Mon Sep 17 00:00:00 2001 From: Johannes Schauer Marin Rodrigues <josch@mister-muffin.de> Date: Tue, 4 Jul 2023 17:06:59 +0200 Subject: [PATCH] .gitlab-ci.yml: make sure that the latest git tag is present in EXTRAVERSION --- .gitlab-ci.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 44a2c7a2f65..3ad04d5a96a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,11 +1,14 @@ image: debian:bullseye-slim build: - script: - - apt-get update - - apt-get --yes install --no-install-recommends gcc-aarch64-linux-gnu build-essential bison flex device-tree-compiler git - - cp mntreform-config .config - - ./build.sh + script: | + apt-get update + apt-get --yes install --no-install-recommends gcc-aarch64-linux-gnu build-essential bison flex device-tree-compiler git + cp mntreform-config .config + ./build.sh + if git describe >/dev/null 2>&1; then + grep --quiet --fixed-strings "EXTRAVERSION = \\ MNT\\ Reform\\ $(git describe --always --tags --abbrev=0)" Makefile + fi artifacts: paths: - "flash.bin" -- GitLab