Skip to content

Commit

Permalink
Merge pull request #14 from filippocarletti/pp5
Browse files Browse the repository at this point in the history
Download rules for suricata-5

NethServer/dev#7029
  • Loading branch information
gsanchietti authored Sep 18, 2024
2 parents 6d183e2 + 6294967 commit 368035a
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 39 deletions.
57 changes: 57 additions & 0 deletions .github/workflows/make-rpms.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: Make RPMs
on:
push:
branches:
- master
- main
pull_request:
jobs:
make-rpm:
runs-on: ubuntu-22.04
env:
dest_id: core
docker_image: ghcr.io/nethserver/makerpms:7
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
ref: ${{ github.head_ref }}
- name: Generate .env file
run: |
cat > .env <<EOF
DEST_ID=${{ env.dest_id }}
NSVER=7
DOCKER_IMAGE=${{ env.docker_image }}
GITHUB_ACTIONS=1
GITHUB_HEAD_REF=${{ github.head_ref }}
GITHUB_REF=${{ github.ref }}
GITHUB_REPOSITORY=${{ github.repository }}
GITHUB_RUN_ID=${{ github.run_id }}
ENDPOINTS_PACK=${{ secrets.endpoints_pack }}
SECRET=${{ secrets.secret }}
SECRET_URL=${{ secrets.secret_url }}
AUTOBUILD_SECRET=${{ secrets.autobuild_secret }}
AUTOBUILD_SECRET_URL=${{ secrets.autobuild_secret_url }}
EOF
- name: Run prep-sources if present.
run: if test -f "prep-sources"; then ./prep-sources; fi
- name: Build RPM and publish
run: |
echo "Starting build..."
docker run --name makerpms \
--env-file .env \
--hostname $GITHUB_RUN_ID-$GITHUB_RUN_NUMBER.nethserver.org \
--volume $PWD:/srv/makerpms/src:ro \
${{ env.docker_image }} \
makerpms-github -s *.spec
echo "Build succesful."
if [[ "${{ secrets.endpoints_pack }}" && "${{ secrets.secret }}" ]]; then
echo "Publish configuration exists, pushing package to repo."
docker commit makerpms nethserver/build
docker run \
--env-file .env \
nethserver/build \
uploadrpms-github
echo "Publish complete."
fi
rm .env
38 changes: 0 additions & 38 deletions .travis.yml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ IPRVersion=/etc/suricata/rules/iplists
# This value MUST contain all 4 minor version
# numbers. ET rules are now also dependant on this, verify supported ET versions
# prior to simply throwing rubbish in this variable kthx!
snort_version=suricata-4.0
snort_version=suricata-5.0

# Here you can specify what rule modification files to run automatically.
# simply uncomment and specify the apt path.
Expand Down

0 comments on commit 368035a

Please sign in to comment.