From d0a44f42859cecd901b0e3dc501ff22d962c329a Mon Sep 17 00:00:00 2001 From: Leonardo Di Donato Date: Tue, 25 Feb 2020 17:15:38 +0100 Subject: [PATCH] new(.circleci): initial job to publish deb package Co-authored-by: Lorenzo Fontana Signed-off-by: Leonardo Di Donato --- .circleci/config.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 87252ea5..4ca948b8 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -84,6 +84,18 @@ jobs: - run: name: Execute integration tests command: /usr/bin/entrypoint test + # Publish the packages + "publish/packages": + docker: + - image: docker.bintray.io/jfrog/jfrog-cli-go:latest + steps: + - attach_workspace: + at: / + - 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/${FALCO_VERSION} --deb bionic/main/amd64 --user poiana --key ${BINTRAY_SECRET} --publish workflows: version: 2 build_and_test: @@ -93,3 +105,7 @@ workflows: - "tests/integration": requires: - "build/centos7" + - "publish/packages": + context: falco + requires: + - "build/centos7"