Skip to content

Commit

Permalink
new(.circleci): initial job to publish deb package
Browse files Browse the repository at this point in the history
Co-authored-by: Lorenzo Fontana <[email protected]>
Signed-off-by: Leonardo Di Donato <[email protected]>
  • Loading branch information
leodido and fntlnz committed Feb 25, 2020
1 parent 9eeed59 commit 93b5afe
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,32 @@ jobs:
- run:
name: Execute integration tests
command: /usr/bin/entrypoint test
# Publish the packages built
"publish/packages":
docker:
- image: docker.bintray.io/jfrog/jfrog-cli-go:latest
environment:
SOURCE_DIR: "/source"
BUILD_DIR: "/build"
BUILD_TYPE: "release"
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:
context: falco
jobs:
- "build/ubuntu-bionic"
- "build/centos7"
- "tests/integration":
requires:
- "build/centos7"
- "publish/packages"
requires:
- "build/centos7"

0 comments on commit 93b5afe

Please sign in to comment.