new(.circleci): build and publish docker images (skeleton)

Signed-off-by: Leonardo Di Donato <leodidonato@gmail.com>
Co-authored-by: Lorenzo Fontana <lo@linux.com>
This commit is contained in:
Leonardo Di Donato 2020-02-27 21:22:07 +01:00 committed by poiana
parent e9b5b815da
commit 76a5976906

View File

@ -160,6 +160,15 @@ jobs:
command: |
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.tar.gz falcosecurity/bin-dev/falco/${FALCO_VERSION} x86_64/ --user poiana --key ${BINTRAY_SECRET} --publish
# Publish docker packages
"publish/docker-dev":
steps:
- run: Publish slim-dev
command: echo "slim-dev"
- run: Publish minimal-dev
command: echo "minimal-dev"
- run: Publish dev
command: echo "dev"
# Publish the packages
"publish/packages":
docker:
@ -182,6 +191,15 @@ jobs:
command: |
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.tar.gz falcosecurity/bin/falco/${FALCO_VERSION} x86_64/ --user poiana --key ${BINTRAY_SECRET} --publish
# Publish docker packages
"publish/docker":
steps:
- run: Publish slim
command: echo "slim"
- run: Publish minimal
command: echo "minimal"
- run: Publish stable
command: echo "stable"
workflows:
version: 2
build_and_test:
@ -201,6 +219,13 @@ workflows:
- master
requires:
- "tests/integration"
- "publish/docker-dev":
filters:
branches:
only:
- master
requires:
- "publish/packages-dev"
release:
jobs:
- "build/centos7":
@ -218,3 +243,11 @@ workflows:
only: /.*/
branches:
ignore: /.*/
- "publish/docker":
requires:
- "publish/packages"
filters:
tags:
only: /.*/
branches:
ignore: /.*/