new(.circleci): initial job to publish deb package

Co-authored-by: Lorenzo Fontana <lo@linux.com>
Signed-off-by: Leonardo Di Donato <leodidonato@gmail.com>
This commit is contained in:
Leonardo Di Donato 2020-02-25 17:15:38 +01:00 committed by poiana
parent 2a739364d6
commit d0a44f4285

View File

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