diff --git a/.circleci/config.yml b/.circleci/config.yml index 2210e6e9..fd452855 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -94,9 +94,9 @@ jobs: - run: name: Publish deb command: | - FALCO_VERSION=$(/build/userspace/falco/falco --version | awk '{print $3;}') - jfrog bt u /build/release/falco-${FALCO_VERSION}.deb falcosecurity/deb/falco-dev/${FALCO_VERSION} --deb bionic/main/amd64 --user poiana --key ${BINTRAY_SECRET} --publish - jfrog bt u /build/release/falco-${FALCO_VERSION}.deb falcosecurity/deb/falco-dev/${FALCO_VERSION} --deb xenial/main/amd64 --user poiana --key ${BINTRAY_SECRET} --publish + FALCO_VERSION=$(sed -e 's/^"//' -e 's/"$//' <<< $(cat /build/release/userspace/falco/config_falco.h | grep 'FALCO_VERSION ' | cut -d' ' -f3)) + jfrog bt u /build/release/falco-${FALCO_VERSION}-x86_64.deb falcosecurity/deb/falco-dev/${FALCO_VERSION} --deb bionic/main/amd64 --user poiana --key ${BINTRAY_SECRET} --publish + jfrog bt u /build/release/falco-${FALCO_VERSION}-x86_64.deb falcosecurity/deb/falco-dev/${FALCO_VERSION} --deb xenial/main/amd64 --user poiana --key ${BINTRAY_SECRET} --publish workflows: version: 2 build_and_test: