mirror of
https://github.com/falcosecurity/falco.git
synced 2025-07-06 03:16:46 +00:00
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:
parent
e9b5b815da
commit
76a5976906
@ -160,6 +160,15 @@ jobs:
|
|||||||
command: |
|
command: |
|
||||||
FALCO_VERSION=$(sed -e 's/^"//' -e 's/"$//' <<< $(cat /build/release/userspace/falco/config_falco.h | grep 'FALCO_VERSION ' | cut -d' ' -f3))
|
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
|
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 the packages
|
||||||
"publish/packages":
|
"publish/packages":
|
||||||
docker:
|
docker:
|
||||||
@ -182,6 +191,15 @@ jobs:
|
|||||||
command: |
|
command: |
|
||||||
FALCO_VERSION=$(sed -e 's/^"//' -e 's/"$//' <<< $(cat /build/release/userspace/falco/config_falco.h | grep 'FALCO_VERSION ' | cut -d' ' -f3))
|
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
|
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:
|
workflows:
|
||||||
version: 2
|
version: 2
|
||||||
build_and_test:
|
build_and_test:
|
||||||
@ -201,6 +219,13 @@ workflows:
|
|||||||
- master
|
- master
|
||||||
requires:
|
requires:
|
||||||
- "tests/integration"
|
- "tests/integration"
|
||||||
|
- "publish/docker-dev":
|
||||||
|
filters:
|
||||||
|
branches:
|
||||||
|
only:
|
||||||
|
- master
|
||||||
|
requires:
|
||||||
|
- "publish/packages-dev"
|
||||||
release:
|
release:
|
||||||
jobs:
|
jobs:
|
||||||
- "build/centos7":
|
- "build/centos7":
|
||||||
@ -213,6 +238,14 @@ workflows:
|
|||||||
context: falco
|
context: falco
|
||||||
requires:
|
requires:
|
||||||
- "build/centos7"
|
- "build/centos7"
|
||||||
|
filters:
|
||||||
|
tags:
|
||||||
|
only: /.*/
|
||||||
|
branches:
|
||||||
|
ignore: /.*/
|
||||||
|
- "publish/docker":
|
||||||
|
requires:
|
||||||
|
- "publish/packages"
|
||||||
filters:
|
filters:
|
||||||
tags:
|
tags:
|
||||||
only: /.*/
|
only: /.*/
|
||||||
|
Loading…
Reference in New Issue
Block a user