mirror of
https://github.com/falcosecurity/falco.git
synced 2025-08-25 09:28:55 +00:00
build(.circleci): publish packages to S3
Signed-off-by: Leonardo Grasso <me@leonardograsso.com>
This commit is contained in:
parent
442011d07e
commit
4f1a2418fe
@ -368,7 +368,7 @@ jobs:
|
|||||||
root: /
|
root: /
|
||||||
paths:
|
paths:
|
||||||
- build/release/*.rpm
|
- build/release/*.rpm
|
||||||
# Publish the packages
|
# Publish the dev packages
|
||||||
"publish/packages-dev":
|
"publish/packages-dev":
|
||||||
docker:
|
docker:
|
||||||
- image: docker.io/amazon/aws-cli:latest
|
- image: docker.io/amazon/aws-cli:latest
|
||||||
@ -507,32 +507,44 @@ jobs:
|
|||||||
# Publish the packages
|
# Publish the packages
|
||||||
"publish/packages":
|
"publish/packages":
|
||||||
docker:
|
docker:
|
||||||
- image: docker.bintray.io/jfrog/jfrog-cli-go:latest
|
- image: docker.io/amazon/aws-cli:latest
|
||||||
steps:
|
steps:
|
||||||
- attach_workspace:
|
- attach_workspace:
|
||||||
at: /
|
at: /
|
||||||
- run:
|
- run:
|
||||||
name: Create versions
|
name: Setup
|
||||||
command: |
|
command: |
|
||||||
FALCO_VERSION=$(cat /build/release/userspace/falco/config_falco.h | grep 'FALCO_VERSION ' | cut -d' ' -f3 | sed -e 's/^"//' -e 's/"$//')
|
yum update -y
|
||||||
jfrog bt vs falcosecurity/deb/falco/${FALCO_VERSION} --user poiana --key ${BINTRAY_SECRET} || jfrog bt vc falcosecurity/deb/falco/${FALCO_VERSION} --desc="Falco (${CIRCLE_TAG})" --released=$(date -u +"%Y-%m-%dT%H:%M:%S.000Z") --vcs-tag=${CIRCLE_TAG} --user poiana --key ${BINTRAY_SECRET}
|
yum install createrepo gpg -y
|
||||||
jfrog bt vs falcosecurity/rpm/falco/${FALCO_VERSION} --user poiana --key ${BINTRAY_SECRET} || jfrog bt vc falcosecurity/rpm/falco/${FALCO_VERSION} --desc="Falco (${CIRCLE_TAG})" --released=$(date -u +"%Y-%m-%dT%H:%M:%S.000Z") --vcs-tag=${CIRCLE_TAG} --user poiana --key ${BINTRAY_SECRET}
|
echo $GPG_KEY | base64 -d | gpg --import
|
||||||
jfrog bt vs falcosecurity/bin/falco/${FALCO_VERSION} --user poiana --key ${BINTRAY_SECRET} || jfrog bt vc falcosecurity/bin/falco/${FALCO_VERSION} --desc="Falco (${CIRCLE_TAG})" --released=$(date -u +"%Y-%m-%dT%H:%M:%S.000Z") --vcs-tag=${CIRCLE_TAG} --user poiana --key ${BINTRAY_SECRET}
|
|
||||||
- run:
|
|
||||||
name: Publish deb
|
|
||||||
command: |
|
|
||||||
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.deb falcosecurity/deb/falco/${FALCO_VERSION} stable/ --deb stable/main/amd64 --user poiana --key ${BINTRAY_SECRET} --publish --override
|
|
||||||
- run:
|
- run:
|
||||||
name: Publish rpm
|
name: Publish rpm
|
||||||
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.rpm falcosecurity/rpm/falco/${FALCO_VERSION} --user poiana --key ${BINTRAY_SECRET} --publish --override
|
/source/falco/scripts/publish-rpm -f /build/release/falco-${FALCO_VERSION}-x86_64.rpm -r rpm
|
||||||
- run:
|
- run:
|
||||||
name: Publish bin
|
name: Publish bin
|
||||||
command: |
|
command: |
|
||||||
FALCO_VERSION=$(cat /build-static/release/userspace/falco/config_falco.h | grep 'FALCO_VERSION ' | cut -d' ' -f3 | sed -e 's/^"//' -e 's/"$//')
|
FALCO_VERSION=$(cat /build-static/release/userspace/falco/config_falco.h | grep 'FALCO_VERSION ' | cut -d' ' -f3 | sed -e 's/^"//' -e 's/"$//')
|
||||||
jfrog bt u /build-static/release/falco-${FALCO_VERSION}-x86_64.tar.gz falcosecurity/bin/falco/${FALCO_VERSION} x86_64/ --user poiana --key ${BINTRAY_SECRET} --publish --override
|
/source/falco/scripts/publish-bin -f /build-static/release/falco-${FALCO_VERSION}-x86_64.tar.gz -r bin -a x86_64
|
||||||
|
"publish/packages-deb":
|
||||||
|
docker:
|
||||||
|
- image: docker.io/debian:stable
|
||||||
|
steps:
|
||||||
|
- attach_workspace:
|
||||||
|
at: /
|
||||||
|
- run:
|
||||||
|
name: Setup
|
||||||
|
command: |
|
||||||
|
apt update -y
|
||||||
|
apt-get install apt-utils bzip2 gpg python python-pip -y
|
||||||
|
pip install awscli
|
||||||
|
echo $GPG_KEY | base64 -d | gpg --import
|
||||||
|
- run:
|
||||||
|
name: Publish deb
|
||||||
|
command: |
|
||||||
|
FALCO_VERSION=$(cat /build/release/userspace/falco/config_falco.h | grep 'FALCO_VERSION ' | cut -d' ' -f3 | sed -e 's/^"//' -e 's/"$//')
|
||||||
|
/source/falco/scripts/publish-deb -f /build/release/falco-${FALCO_VERSION}-x86_64.deb -r deb
|
||||||
# Publish docker packages
|
# Publish docker packages
|
||||||
"publish/docker":
|
"publish/docker":
|
||||||
docker:
|
docker:
|
||||||
@ -734,10 +746,24 @@ workflows:
|
|||||||
only: /.*/
|
only: /.*/
|
||||||
branches:
|
branches:
|
||||||
ignore: /.*/
|
ignore: /.*/
|
||||||
|
- "publish/packages-deb":
|
||||||
|
context:
|
||||||
|
- falco
|
||||||
|
- test-infra
|
||||||
|
requires:
|
||||||
|
- "build/centos7"
|
||||||
|
filters:
|
||||||
|
tags:
|
||||||
|
only: /.*/
|
||||||
|
branches:
|
||||||
|
ignore: /.*/
|
||||||
- "publish/docker":
|
- "publish/docker":
|
||||||
context: falco
|
context:
|
||||||
|
- falco
|
||||||
|
- test-infra
|
||||||
requires:
|
requires:
|
||||||
- "publish/packages"
|
- "publish/packages"
|
||||||
|
- "publish/packages-deb"
|
||||||
filters:
|
filters:
|
||||||
tags:
|
tags:
|
||||||
only: /.*/
|
only: /.*/
|
||||||
|
Loading…
Reference in New Issue
Block a user