build(.circleci): publish static tgz on release

Signed-off-by: Leonardo Grasso <me@leonardograsso.com>
This commit is contained in:
Leonardo Grasso 2020-09-07 14:08:30 +02:00 committed by poiana
parent 7e9ca5c540
commit 1e64f0a5c9

View File

@ -413,6 +413,11 @@ jobs:
command: | command: |
FALCO_VERSION=$(cat /build/release/userspace/falco/config_falco.h | grep 'FALCO_VERSION ' | cut -d' ' -f3 | sed -e 's/^"//' -e 's/"$//') FALCO_VERSION=$(cat /build/release/userspace/falco/config_falco.h | grep 'FALCO_VERSION ' | cut -d' ' -f3 | sed -e 's/^"//' -e 's/"$//')
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 --override 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 --override
- run:
name: Publish tgz-static
command: |
FALCO_VERSION=$(cat /build-musl/release/userspace/falco/config_falco.h | grep 'FALCO_VERSION ' | cut -d' ' -f3 | sed -e 's/^"//' -e 's/"$//')
jfrog bt u /build-musl/release/falco-${FALCO_VERSION}-x86_64.tar.gz falcosecurity/bin/falco/${FALCO_VERSION} x86_64/ falco-static-${FALCO_VERSION}-x86_64.tar.gz --user poiana --key ${BINTRAY_SECRET} --publish --override
# Publish docker packages # Publish docker packages
"publish/docker": "publish/docker":
docker: docker:
@ -510,6 +515,7 @@ workflows:
- "tests/driver-loader/integration" - "tests/driver-loader/integration"
release: release:
jobs: jobs:
- "build/musl"
- "build/centos7": - "build/centos7":
filters: filters:
tags: tags:
@ -528,6 +534,7 @@ workflows:
- "publish/packages": - "publish/packages":
context: falco context: falco
requires: requires:
- "build/musl"
- "rpm/sign" - "rpm/sign"
filters: filters:
tags: tags: