mirror of
https://github.com/falcosecurity/falco.git
synced 2025-09-01 14:47:00 +00:00
chore(ci): renamed bucket
to bucket_suffix
.
Signed-off-by: Federico Di Pierro <nierro92@gmail.com> Co-authored-by: Luca Guerra <luca@guerra.sh>
This commit is contained in:
committed by
poiana
parent
2a22189222
commit
89f29e6d4b
6
.github/workflows/reusable_build_docker.yaml
vendored
6
.github/workflows/reusable_build_docker.yaml
vendored
@@ -6,7 +6,7 @@ on:
|
|||||||
description: x86_64 or aarch64
|
description: x86_64 or aarch64
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
bucket:
|
bucket_suffix:
|
||||||
description: bucket suffix for packages
|
description: bucket suffix for packages
|
||||||
required: false
|
required: false
|
||||||
default: ''
|
default: ''
|
||||||
@@ -32,7 +32,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
context: ${{ github.workspace }}/docker/no-driver/
|
context: ${{ github.workspace }}/docker/no-driver/
|
||||||
build-args: |
|
build-args: |
|
||||||
VERSION_BUCKET=bin${{ inputs.bucket }}
|
VERSION_BUCKET=bin${{ inputs.bucket_suffix }}
|
||||||
FALCO_VERSION=${{ inputs.version }}
|
FALCO_VERSION=${{ inputs.version }}
|
||||||
tags: |
|
tags: |
|
||||||
falcosecurity/falco-no-driver:${{ inputs.arch }}-${{ github.ref_name }}
|
falcosecurity/falco-no-driver:${{ inputs.arch }}-${{ github.ref_name }}
|
||||||
@@ -46,7 +46,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
context: ${{ github.workspace }}/docker/falco/
|
context: ${{ github.workspace }}/docker/falco/
|
||||||
build-args: |
|
build-args: |
|
||||||
VERSION_BUCKET=deb${{ inputs.bucket }}
|
VERSION_BUCKET=deb${{ inputs.bucket_suffix }}
|
||||||
FALCO_VERSION=${{ inputs.version }}
|
FALCO_VERSION=${{ inputs.version }}
|
||||||
tags: |
|
tags: |
|
||||||
falcosecurity/falco:${{ inputs.arch }}-${{ github.ref_name }}
|
falcosecurity/falco:${{ inputs.arch }}-${{ github.ref_name }}
|
||||||
|
16
.github/workflows/reusable_publish_packages.yaml
vendored
16
.github/workflows/reusable_publish_packages.yaml
vendored
@@ -6,7 +6,7 @@ on:
|
|||||||
description: 'Falco version extracted from userspace/falco/config_falco.h'
|
description: 'Falco version extracted from userspace/falco/config_falco.h'
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
bucket:
|
bucket_suffix:
|
||||||
description: bucket suffix for packages
|
description: bucket suffix for packages
|
||||||
required: false
|
required: false
|
||||||
default: ''
|
default: ''
|
||||||
@@ -37,7 +37,7 @@ jobs:
|
|||||||
- name: Configure AWS credentials
|
- name: Configure AWS credentials
|
||||||
uses: aws-actions/configure-aws-credentials@v2
|
uses: aws-actions/configure-aws-credentials@v2
|
||||||
with:
|
with:
|
||||||
role-to-assume: "arn:aws:iam::292999226676:role/github_actions-falco${{ inputs.bucket }}-s3"
|
role-to-assume: "arn:aws:iam::292999226676:role/github_actions-falco${{ inputs.bucket_suffix }}-s3"
|
||||||
aws-region: ${{ env.AWS_S3_REGION }}
|
aws-region: ${{ env.AWS_S3_REGION }}
|
||||||
|
|
||||||
- name: Download all artifacts
|
- name: Download all artifacts
|
||||||
@@ -68,16 +68,16 @@ jobs:
|
|||||||
|
|
||||||
- name: Publish rpm
|
- name: Publish rpm
|
||||||
run: |
|
run: |
|
||||||
./scripts/publish-rpm -f /tmp/falco-${{ inputs.version }}-x86_64.rpm -f /tmp/falco-${{ inputs.version }}-aarch64.rpm -r rpm${{ inputs.bucket }}
|
./scripts/publish-rpm -f /tmp/falco-${{ inputs.version }}-x86_64.rpm -f /tmp/falco-${{ inputs.version }}-aarch64.rpm -r rpm${{ inputs.bucket_suffix }}
|
||||||
|
|
||||||
- name: Publish bin
|
- name: Publish bin
|
||||||
run: |
|
run: |
|
||||||
./scripts/publish-bin -f /tmp/falco-${{ inputs.version }}-x86_64.tar.gz -r bin${{ inputs.bucket }} -a x86_64
|
./scripts/publish-bin -f /tmp/falco-${{ inputs.version }}-x86_64.tar.gz -r bin${{ inputs.bucket_suffix }} -a x86_64
|
||||||
./scripts/publish-bin -f /tmp/falco-${{ inputs.version }}-aarch64.tar.gz -r bin${{ inputs.bucket }} -a aarch64
|
./scripts/publish-bin -f /tmp/falco-${{ inputs.version }}-aarch64.tar.gz -r bin${{ inputs.bucket_suffix }} -a aarch64
|
||||||
|
|
||||||
- name: Publish static
|
- name: Publish static
|
||||||
run: |
|
run: |
|
||||||
./scripts/publish-bin -f /tmp/falco-${{ inputs.version }}-static-x86_64.tar.gz -r bin${{ inputs.bucket }} -a x86_64
|
./scripts/publish-bin -f /tmp/falco-${{ inputs.version }}-static-x86_64.tar.gz -r bin${{ inputs.bucket_suffix }} -a x86_64
|
||||||
|
|
||||||
publish-packages-deb:
|
publish-packages-deb:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -95,7 +95,7 @@ jobs:
|
|||||||
- name: Configure AWS credentials
|
- name: Configure AWS credentials
|
||||||
uses: aws-actions/configure-aws-credentials@v2
|
uses: aws-actions/configure-aws-credentials@v2
|
||||||
with:
|
with:
|
||||||
role-to-assume: "arn:aws:iam::292999226676:role/github_actions-falco${{ inputs.bucket }}-s3"
|
role-to-assume: "arn:aws:iam::292999226676:role/github_actions-falco${{ inputs.bucket_suffix }}-s3"
|
||||||
aws-region: ${{ env.AWS_S3_REGION }}
|
aws-region: ${{ env.AWS_S3_REGION }}
|
||||||
|
|
||||||
- name: Download deb artifacts
|
- name: Download deb artifacts
|
||||||
@@ -110,6 +110,6 @@ jobs:
|
|||||||
|
|
||||||
- name: Publish deb
|
- name: Publish deb
|
||||||
run: |
|
run: |
|
||||||
./scripts/publish-deb -f /tmp/falco-${{ inputs.version }}-x86_64.deb -f /tmp/falco-${{ inputs.version }}-aarch64.deb -r deb${{ inputs.bucket }}
|
./scripts/publish-deb -f /tmp/falco-${{ inputs.version }}-x86_64.deb -f /tmp/falco-${{ inputs.version }}-aarch64.deb -r deb${{ inputs.bucket_suffix }}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user