fix(.circleci): obtain FALCO_VERSION without executing Falco

Signed-off-by: Leonardo Di Donato <leodidonato@gmail.com>
This commit is contained in:
Leonardo Di Donato 2020-02-26 12:55:48 +01:00 committed by poiana
parent c19b2f14ad
commit f44098cf2d

View File

@ -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: