diff --git a/.circleci/config.yml b/.circleci/config.yml index b1782d70..6de15e1a 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -210,7 +210,8 @@ jobs: - run: name: Build and publish slim-dev command: | - docker build --build-arg VERSION_BUCKET=deb-dev -t falcosecurity/falco:master-slim docker/slim + FALCO_VERSION=$(cat /build/release/userspace/falco/config_falco.h | grep 'FALCO_VERSION ' | cut -d' ' -f3 | sed -e 's/^"//' -e 's/"$//') + docker build --build-arg VERSION_BUCKET=deb-dev --build-arg FALCO_VERSION=${FALCO_VERSION} -t falcosecurity/falco:master-slim docker/slim echo ${DOCKERHUB_SECRET} | docker login -u ${DOCKERHUB_USER} --password-stdin docker push falcosecurity/falco:master-slim - run: @@ -223,7 +224,8 @@ jobs: - run: name: Build and publish dev command: | - docker build --build-arg VERSION_BUCKET=deb-dev -t falcosecurity/falco:master docker/stable + FALCO_VERSION=$(cat /build/release/userspace/falco/config_falco.h | grep 'FALCO_VERSION ' | cut -d' ' -f3 | sed -e 's/^"//' -e 's/"$//') + docker build --build-arg VERSION_BUCKET=deb-dev --build-arg FALCO_VERSION=${FALCO_VERSION} -t falcosecurity/falco:master docker/stable echo ${DOCKERHUB_SECRET} | docker login -u ${DOCKERHUB_USER} --password-stdin docker push falcosecurity/falco:master # Publish the packages