From b7cadd29d43dca425ebf7780c76a86d4f806504a Mon Sep 17 00:00:00 2001 From: Ettore Di Giacinto Date: Wed, 17 Aug 2022 08:02:18 +0000 Subject: [PATCH] art: Write only version to VERSION in os-release Add FLAVOR and VARIANT to handle those separately, this should also fix upgrades. Fixes https://github.com/c3os-io/c3os/issues/80 --- Earthfile | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/Earthfile b/Earthfile index 1e4cfa7..d537595 100644 --- a/Earthfile +++ b/Earthfile @@ -64,6 +64,8 @@ OSRELEASE: ARG OS_REPO ARG OS_VERSION ARG OS_LABEL + ARG VARIANT + ARG FLAVOR ARG GITHUB_REPO=c3os-io/c3os ARG BUG_REPORT_URL=https://github.com/c3os-io/c3os/issues ARG HOME_URL=https://github.com/c3os-io/c3os @@ -75,6 +77,8 @@ OSRELEASE: ENV GITHUB_REPO=$GITHUB_REPO ENV BUG_REPORT_URL=$BUG_REPORT_URL ENV HOME_URL=$HOME_URL + ENV VARIANT=$VARIANT + ENV FLAVOR=$FLAVOR # update OS-release file RUN envsubst >/etc/os-release