chore(ci): properly install recent version of git (needed >= 2.18 by checkout action) to fix Falco versioning.

Moreover, fixed path to output packages from Falco `make package` target.

Signed-off-by: Federico Di Pierro <nierro92@gmail.com>
This commit is contained in:
Federico Di Pierro
2023-04-27 17:21:25 +02:00
committed by poiana
parent fb105c4b04
commit ad75c87e21

View File

@@ -54,7 +54,9 @@ jobs:
yum -y install centos-release-scl yum -y install centos-release-scl
yum -y install devtoolset-9-gcc devtoolset-9-gcc-c++ yum -y install devtoolset-9-gcc devtoolset-9-gcc-c++
source /opt/rh/devtoolset-9/enable source /opt/rh/devtoolset-9/enable
yum install -y git wget make m4 rpm-build yum install -y wget make m4 rpm-build
yum -y install https://packages.endpointdev.com/rhel/7/os/x86_64/endpoint-repo.x86_64.rpm
yum install -y git
- name: Checkout - name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@v3
@@ -112,21 +114,21 @@ jobs:
with: with:
name: falco-${{ steps.store_version.outputs.version }}-${{ inputs.arch }}.tar.gz name: falco-${{ steps.store_version.outputs.version }}-${{ inputs.arch }}.tar.gz
path: | path: |
${{ github.workspace }}/build/packages/falco-*.tar.gz ${{ github.workspace }}/build/falco-*.tar.gz
- name: Upload Falco deb package - name: Upload Falco deb package
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
with: with:
name: falco-${{ steps.store_version.outputs.version }}-${{ inputs.arch }}.deb name: falco-${{ steps.store_version.outputs.version }}-${{ inputs.arch }}.deb
path: | path: |
${{ github.workspace }}/build/packages/falco-*.deb ${{ github.workspace }}/build/falco-*.deb
- name: Upload Falco rpm package - name: Upload Falco rpm package
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
with: with:
name: falco-${{ steps.store_version.outputs.version }}-${{ inputs.arch }}.rpm name: falco-${{ steps.store_version.outputs.version }}-${{ inputs.arch }}.rpm
path: | path: |
${{ github.workspace }}/build/packages/falco-*.rpm ${{ github.workspace }}/build/falco-*.rpm
build-musl-package: build-musl-package:
needs: build-packages needs: build-packages