Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ecs: add args_count field #64

Open
wants to merge 505 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
505 commits
Select commit Hold shift + click to select a range
b6783b3
fix(core): fix linting issues; refactor thread pool and fix start/sto…
araujof Jan 20, 2022
2987586
fix(core): fix interpreter unit tests where argument was missing to i…
araujof Jan 20, 2022
8f8eb03
update(docs/core): update key word of action direcory; updated docs w…
araujof Jan 20, 2022
5300e52
update(core): Merge pull request #39 from san-zrl/v_0_4_0
araujof Jan 20, 2022
653c351
build(scripts): added Cpack scripts for packagin the processor in DEB…
araujof Jan 25, 2022
aa19088
refact(scripts): cleaned up commented lines from cpack script
araujof Jan 25, 2022
5bc1058
build(scripts): added license and readme files to binary packages
araujof Jan 26, 2022
3dfd3fd
build(scripts): update make package rule to export sysflow version fr…
araujof Jan 26, 2022
9d2328a
fix(config): added missing mode attribute to example pipeline configs
araujof Jan 31, 2022
7430ad5
build(scripts): added systemd service definition and sysflow launcher…
araujof Jan 31, 2022
f8ae96b
build(scripts): updated systemd service definition
araujof Feb 1, 2022
c825ad3
build(scripts): updated systemd service dafaults
araujof Feb 1, 2022
44bf117
fix(core): fix error message linting issue
araujof Feb 2, 2022
35f93fb
chore(ci): setting golangci-lint to v1.42.1 (latest release breaks th…
araujof Feb 2, 2022
ed8706f
chore(merge): Merge branch 'dev' of github.com:sysflow-telemetry/sf-p…
araujof Feb 2, 2022
147cec4
fix(scripts): fix installation paths using rpm
araujof Feb 3, 2022
a0fcb58
chore(mods): updated sysflow apis to ab7fe1f
araujof Feb 4, 2022
be7b5ae
chore(merge): merged dev into feature branch
araujof Feb 4, 2022
22dd41d
chore(merge): merge feature branches
araujof Feb 4, 2022
2fa870f
chore(ci): removed codeql workflow
araujof Feb 4, 2022
bc8217b
fix(driver): create base socket dir if non existent
araujof Feb 4, 2022
de8240b
fix(merge): fix merge conflict
araujof Feb 4, 2022
e34ce17
build(scripts): updated systemd service definition to use environment…
araujof Feb 4, 2022
7f6c032
fix(build): removes system docker gid from docker build (portability)
araujof Feb 4, 2022
03a9d13
build(scripts): changed packaging to obtain binary from docker image
araujof Feb 4, 2022
453bcd1
build(scripts): fix environment variable in systemd service exec command
araujof Feb 5, 2022
7517f15
build(docker): bump go version to go1.17.6
araujof Feb 7, 2022
15e65a5
update(ci): added release job
araujof Feb 7, 2022
057fa9b
chore(changelog): updated to use reference links
araujof Feb 7, 2022
595ac4f
chore(changelog): updated CHANGELOG in preparation for 0.4.0
araujof Feb 7, 2022
c3aa6a1
chore(changelog): updated CHANGELOG in preparation for 0.4.0 (update)
araujof Feb 7, 2022
df6dac8
fix(driver): updated usage string with logging modes
araujof Feb 7, 2022
5ed2be5
chore(readme): updated README
araujof Feb 7, 2022
ffb1eb7
chore(changelog): fixes missing tag in changelog
araujof Feb 7, 2022
28afa2e
Merge pull request #40 from sysflow-telemetry/cpack
terylt Feb 7, 2022
0aa2cdc
update(manifest): updated version
araujof Feb 8, 2022
bcd5953
fix(core): updates findings SDK to v3.0.0
araujof Feb 8, 2022
8bfd783
fix(core): policy engine stops expried workers before starting new on…
araujof Feb 8, 2022
44ad4da
build(ci): updated release job
araujof Feb 9, 2022
8269342
fix(build): reset directory after packaging
araujof Feb 10, 2022
3fc2195
build(ci): add path prefixes to release asset path listings
araujof Feb 10, 2022
acb1aac
build(ci): fix github workspace env var
araujof Feb 10, 2022
2ce0eea
build(ci): fix output vars in release step
araujof Feb 11, 2022
9082ae6
fix(driver): fix flag handling in unix socket reading (our old handli…
araujof Feb 11, 2022
6b2826f
fix(driver): fixes stream socket reader issue introduced with upgrade…
araujof Feb 11, 2022
bc0e4f6
chore(driver): fix typo in comment
araujof Feb 11, 2022
caa843d
chore(changelog): updated CHANGELOG
araujof Feb 11, 2022
11d47a2
Merge pull request #41 from sysflow-telemetry/unix_socket_fix_go_1_17
araujof Feb 11, 2022
395122e
chore(changelog): updated CHANGELOG
araujof Feb 11, 2022
beab2ff
build(scripts): updated naming of binary packages
araujof Feb 11, 2022
012bbd9
chore(reademe): updated links in readme
araujof Feb 11, 2022
ff8d403
refactor(core): updagrade to antrl 4.9.2; refactored grammar to parse…
araujof Feb 16, 2022
707ead2
chore(manifest): bumped to 0.4.0-rc2
araujof Feb 16, 2022
846003c
fix(core): update findings to new SDK; fix depricated package CVE-202…
araujof Feb 17, 2022
7de4f70
chore(core): add comments and remove commented out code
araujof Feb 17, 2022
c05c43d
refactor(core): update short description in findings to print rule name
araujof Feb 17, 2022
5fe684d
refactor(core): reformatted short description for occurrences
araujof Feb 17, 2022
355cab6
chore(core/driver): mod tidy
araujof Feb 17, 2022
f661732
feat(core): add codec creation timestamp to occurences file path name…
araujof Feb 17, 2022
b956c01
Merge pull request #42 from sysflow-telemetry/findingssdk_update
terylt Feb 17, 2022
ac2aad5
chore(manifest): bump version to 0.4.0-rc3
araujof Feb 17, 2022
aa3ac05
refactor(core): updated default mode of policy engine
araujof Feb 18, 2022
78de1d3
chore(changelog): updated CHANGELOG
araujof Feb 18, 2022
cb82d40
chore(manifest): bumped to sysflow 0.4.0
araujof Feb 18, 2022
f8c16c6
feat(core/plugins): updated policy language grammar (action-->actions…
araujof Feb 20, 2022
27b07ac
feat(core/plugins): updated policy language grammar (action-->actions…
araujof Feb 20, 2022
4911c23
feat(ci): add plugin builder image step to CI
araujof Feb 20, 2022
4094158
feat(ci): adding cache-from base image in docker build step
araujof Feb 20, 2022
960a02e
feat(plugins): refactored make to build plugin-builder image; updated…
araujof Feb 21, 2022
3c2e577
refactor(plugins): updated README of action plugins to include sample…
araujof Feb 21, 2022
25c7181
chore(plugins): fix name of action plugin README file
araujof Feb 21, 2022
da3daff
feat(plugins): refactored and added how-tos for all plugins using the…
araujof Feb 21, 2022
fe63579
fix: fixed some typos
terylt Feb 21, 2022
0e33a38
refactor(docs): refactored and edited documentation
araujof Feb 22, 2022
3d7d8c5
refactor(docs): updated documentation
araujof Feb 22, 2022
7672190
refactor(docs): updated headings
araujof Feb 22, 2022
fe7c673
refactor(docs): updated Go version required
araujof Feb 22, 2022
578f839
chore(changelog): updated changelog
araujof Feb 22, 2022
110b9a0
refactor(docs): refactored TOC
araujof Feb 22, 2022
3927b89
refactor(docs): fixed typo in plugin name
araujof Feb 22, 2022
a2d98fa
Merge pull request #43 from sysflow-telemetry/dev
araujof Feb 22, 2022
cf121f7
refactor(build): remove dkms requirement from binary package
araujof Mar 23, 2022
cc66dae
chore(manifest): update version and bumped UBI version
araujof Mar 23, 2022
ac73364
chore(docs): updated README and CHANGELOG
araujof Mar 23, 2022
6df8bb3
chore(docs): updated CHANGELOG
araujof Mar 23, 2022
19ee855
chore(manifest): bumped sysflow version to 0.4.1-rc2
araujof Mar 24, 2022
f3e18e5
feat(core): added multi-driver support to the processor
terylt Apr 19, 2022
2a2d834
chore(manifest): bumped version to 0.4.1-rc3
araujof May 13, 2022
fd7f339
chore(ci): updated golinter action to v1.46.1
araujof May 13, 2022
1474c45
chore(manifest): bumped version to 0.4.1 and UBI version to 8.6-754
araujof May 27, 2022
5ee0f34
refactor(build): remove dkms requirement from binary package
araujof Mar 23, 2022
08f249f
chore(manifest): update version and bumped UBI version
araujof Mar 23, 2022
0866a32
chore(docs): updated README and CHANGELOG
araujof Mar 23, 2022
537afed
chore(docs): updated CHANGELOG
araujof Mar 23, 2022
2845531
chore(manifest): bumped sysflow version to 0.4.1-rc2
araujof Mar 24, 2022
914a292
chore(manifest): bumped version to 0.4.1-rc3
araujof May 13, 2022
24e76a6
chore(ci): updated golinter action to v1.46.1
araujof May 13, 2022
6de41db
chore(manifest): bumped version to 0.4.1 and UBI version to 8.6-754
araujof May 27, 2022
b0b259e
chore(core): fix typo in comments
araujof Jun 1, 2022
e47ba6b
chore(core): fix typo in comments
araujof Jun 1, 2022
2e4d991
Fix (ecs encoder): added missing host field
san-zrl Jun 8, 2022
eb9babe
Merge pull request #44 from san-zrl/dev
araujof Jun 10, 2022
2d7e7e4
Fix (ecs encoder): added missing host field
san-zrl Jun 8, 2022
49ede7c
chore(manifest): bump sysflow version to 0.4.2
araujof Jun 10, 2022
6cf614a
chore(manifest): bump sysflow version to 0.4.2
araujof Jun 10, 2022
dac40a7
added support for K8S metadata
san-zrl Jun 21, 2022
542efe5
feat(scripts): add plugindir to systemd service commandline options
araujof Jun 21, 2022
39e32c8
feat(scripts): add plugindir to systemd service commandline options
araujof Jun 21, 2022
a88e39f
docs(changelog): update changelog
araujof Jun 22, 2022
a06816b
docs(changelog): update changelog
araujof Jun 22, 2022
f8a85e0
(update) documentation for K8S support
san-zrl Jun 29, 2022
078f0ea
(update) documentation for K8S support
san-zrl Jun 29, 2022
767eede
(fix) ECS for KE events
san-zrl Jul 1, 2022
8686eae
Simplified markdown of Notes
san-zrl Jul 6, 2022
f8fcb28
(fix) use nested types in elastic
san-zrl Jul 8, 2022
278f626
Merge branch 'dev_k8s' of github.com:san-zrl/sf-processor into dev_k8s
san-zrl Jul 8, 2022
31cd830
chore(license): updating license to make it recognizable by gh
araujof Jul 11, 2022
7f63d16
(fix) deleted obsolete code
san-zrl Jul 20, 2022
2cedbf9
Merge branch 'dev' into dev_k8s
san-zrl Jul 20, 2022
78b66fb
chore(merge): fix merge conflicts
araujof Jul 20, 2022
da58bb1
(update) documentation for K8S support
san-zrl Jun 29, 2022
9022a86
(update) documentation for K8S support
san-zrl Jun 29, 2022
6cb53f7
(fix) ECS for KE events
san-zrl Jul 1, 2022
994dd1a
(fix) use nested types in elastic
san-zrl Jul 8, 2022
f4bd7bb
Simplified markdown of Notes
san-zrl Jul 6, 2022
f8fc950
(fix) deleted obsolete code
san-zrl Jul 20, 2022
8ac21fe
chore(merge): fix merge conflicts
araujof Jul 20, 2022
73c23b3
chore(ci): update golinter to 1.47.1
araujof Jul 20, 2022
7363ddd
fix(core/driver): revert compatibility to go 1.17 and remove usage of…
araujof Jul 20, 2022
e458807
chore(manifest): bump ubi version to 8.6-855
araujof Jul 20, 2022
799bc1e
fix(code): linting/formatting
araujof Jul 20, 2022
17c2168
fix(docker): revert compatibility to go 1.17
araujof Jul 20, 2022
923dad2
fix(core): refactored encodeID hashing to remove unnecesary string co…
araujof Jul 20, 2022
570f492
docs(config/policies): fix typos
araujof Jul 20, 2022
372c9a9
fix(code): linting/formatting
araujof Jul 20, 2022
0e3a8d0
fix(plugins): fix example plugins to implement new sf-apis; revert go…
araujof Jul 20, 2022
8fac180
Merge pull request #45 from san-zrl/dev_k8s
araujof Jul 20, 2022
1851907
fix(policies): revert change to ttps.yaml profile list
araujof Jul 20, 2022
be7fd60
chore(manifest): bumped sysflow version to 0.5.0-rc1
araujof Jul 20, 2022
1c2d84e
fix(policy engine): map int32 and bool fields correcly in MapStr
san-zrl Jul 27, 2022
171f7d6
Merge pull request #47 from san-zrl/dev
araujof Jul 29, 2022
dae908c
fix(core): backport patch to fix handling of integers and booleans in…
araujof Jul 29, 2022
8bc038a
fix(core): backport patch to fix exists predicate
araujof Jul 29, 2022
624b9ff
chore(manifest): bumped sysflow version to 0.4.4
araujof Aug 1, 2022
d72fecc
feat(ubi): bumped UBI to 8.6-855
araujof Aug 1, 2022
1570ad8
chore(changelog): update CHANGELOG
araujof Aug 1, 2022
201bcdf
chore(apis): updated reference to sf-apis
araujof Aug 1, 2022
e8d6a37
fix(mod): fix lint issues
araujof Aug 1, 2022
e57810e
feat(core): add rate limiting filter with time decaying
araujof Aug 1, 2022
dbc77ed
docs(config): fix typo
araujof Aug 1, 2022
fe52807
Merge pull request #48 from sysflow-telemetry/ratelimiting
araujof Aug 1, 2022
27b4644
chore(merge): merge master into dev
araujof Aug 9, 2022
ec1ccda
fix(rules): fix open_write and open_read macros
araujof Oct 17, 2022
b89f975
chore(manifest): bump version to 0.5.0 and UBI version to 8.6-943.166…
araujof Oct 17, 2022
1b1622a
chore(readme): updated README
araujof Oct 17, 2022
7ec1213
feat(go): upgrade to go 1.19 compat
araujof Dec 12, 2022
97603b5
feat(core): added multi-driver support to the processor
terylt Apr 19, 2022
9f73140
Merge branch 'multi_driver' of github.com:sysflow-telemetry/sf-proces…
araujof Dec 12, 2022
b7afe11
feat(core): initial refactoring to support multi-language policy engine
araujof Jan 24, 2023
14d0f43
refactor(core): refactor policy monitor; add default creation for int…
araujof Jan 25, 2023
84afd21
fix(core): fix remaining issues with exporter encoders after refactor…
araujof Jan 25, 2023
f63fbec
feat(core): add regexp operation
araujof Feb 7, 2023
2ff68ec
feat(core): sigma frontend with transformers
araujof Feb 8, 2023
5d1d556
feat(core): working version of the sigma compiler, supporting fieldma…
araujof Feb 9, 2023
bd48294
refactor(core): introduce generilized operators for string and intege…
araujof Feb 9, 2023
abdf6ca
feat(core): refactored operators
araujof Feb 10, 2023
168c7ce
feat(core): add transformer support for sigma and warning/handling of…
araujof Feb 13, 2023
8133742
feat(core): add regexp operation for sysflow flatrecords
araujof Feb 13, 2023
523c149
feat(core): add recursive reading of input policies; fix recursive lo…
araujof Feb 13, 2023
991dafd
feat(core): modify operations interface to return errors
araujof Feb 13, 2023
88a863d
feat(core): add String() method to Operator type
araujof Feb 14, 2023
0f48104
chore(resources): add process_creation sigma rules for Linux (for tests)
araujof Feb 14, 2023
d0ef6cc
chore(README): fix build shield URL
araujof Feb 14, 2023
0b441fe
fix(core): fix logical conjunction predicate in selections of field maps
araujof Feb 14, 2023
ffb675a
tests(core): add tests for compilers
araujof Feb 14, 2023
90cf5bb
fix(ci): bump linter and golang versions
araujof Feb 14, 2023
f58e450
chore(core): add missing copyright headers
araujof Feb 15, 2023
5cec19f
Adding BEGIN_CURLY constant.
VishwasSomasekhariah Feb 15, 2023
041322b
Updating mapPortList function to write the UDP and TCP port details c…
VishwasSomasekhariah Feb 16, 2023
44dbe42
Update jsonconstants.go
VishwasSomasekhariah Feb 16, 2023
6e29484
Migrated plugins to new arch and added make plugins target
san-zrl Feb 16, 2023
3ead78a
Merge branch 'go1.19-sigma' of github.com:sysflow-telemetry/sf-proces…
san-zrl Feb 16, 2023
72dffb3
added make plugins target
san-zrl Feb 16, 2023
9b2d6a9
fix: JSON Encoder mapPortList
VishwasSomasekhariah Feb 16, 2023
0645c4a
fix(core): adding correct formatting to mapPortList
VishwasSomasekhariah Feb 16, 2023
536f12c
fix(core): adding correct formatting to mapPortList
VishwasSomasekhariah Feb 16, 2023
2f24579
fix(core/exporter): fix linting issues
araujof Feb 16, 2023
3fe25dc
fix(core): fix off-by-1 json ports encoding
araujof Feb 16, 2023
6c3a454
Merge pull request #50 from VishwasSomasekhariah/master
araujof Feb 16, 2023
0eb10e7
update(operators): added operator functions for slices and ipv6 data …
terylpt Feb 16, 2023
6fb7495
Merge branch 'go1.19-sigma' of github.com:/sysflow-telemetry/sf-proce…
terylpt Feb 16, 2023
939cf64
feat(core, resources): add additional sysflow sigma mappings, a few c…
araujof Feb 17, 2023
a506fc9
new(resources): add sample trace for shellshock attack
araujof Feb 17, 2023
df56e6a
feat(source): updated processor to support compiling in other data so…
terylpt Feb 17, 2023
707d88b
tests(core|driver): add perf logging and event rate measurement
araujof Feb 22, 2023
135a9bf
feat(tests): add bench pipeline configs
araujof Feb 22, 2023
b16054b
new(resources): add k8s traces
araujof Feb 23, 2023
5561cdc
new(tests): add summarization script for benchmarks
araujof Feb 23, 2023
867a9de
feat(tests): new benchmark scripts
araujof Feb 23, 2023
be366c5
refactor(core): add benchmark options
araujof Feb 23, 2023
568a17d
test(scripts): update summarize script
araujof Feb 24, 2023
38fa208
Adding BEGIN_CURLY constant.
VishwasSomasekhariah Feb 15, 2023
df30d56
Updating mapPortList function to write the UDP and TCP port details c…
VishwasSomasekhariah Feb 16, 2023
25cd276
Update jsonconstants.go
VishwasSomasekhariah Feb 16, 2023
c3faf35
fix: JSON Encoder mapPortList
VishwasSomasekhariah Feb 16, 2023
1a26ac8
fix(core/exporter): fix linting issues
araujof Feb 16, 2023
8071e4f
fix(core): fix off-by-1 json ports encoding
araujof Feb 16, 2023
e2614ac
Merge branch 'dev' of github.com:sysflow-telemetry/sf-processor into dev
araujof Apr 4, 2023
a7b3e3c
feat(core): added multi-driver support to the processor
terylt Apr 19, 2022
5c59d11
chore(mods): bump sf-apis to 0.5.1-rc4
terylt Apr 19, 2022
25010ad
chore(README): fix build shield URL
araujof Feb 14, 2023
4d41130
chore(changelog): update changelog
araujof Apr 4, 2023
175d8d4
chore(manifest): update manifest
araujof Apr 4, 2023
0846977
fix(plugins): update for multi-driver support
araujof Apr 4, 2023
dc19d97
Update CONFIG.md
ysaquib Jun 6, 2023
97e5b2d
fixed broken link to exlicit mapping
san-zrl Jun 7, 2023
c5edaa9
Merge pull request #53 from san-zrl/dev
araujof Jun 8, 2023
efb84af
Merge pull request #52 from ysaquib/ysaquib-patch-1
araujof Jun 8, 2023
53aa770
Merge branch 'master' into dev
araujof Jun 8, 2023
e858505
chore(manifest): bump to version 0.5.1
araujof Jun 8, 2023
db39bf9
doc(README): update readme
araujof Jun 8, 2023
89bc902
fix(ci): updated deprecated features
araujof Jun 8, 2023
2798f9a
chore(core,driver): updated go mod and sum
araujof Sep 5, 2023
5b60115
fix(ci,core,driver): fix lint issues and deprecated Go features
araujof Sep 5, 2023
a223356
feat(core,plugins): track newest sf-apis; fix example plugins to work…
araujof Sep 5, 2023
20dde65
chore(merge): fix merge conflicts with dev branch
araujof Sep 5, 2023
f504d18
chore(merge): fix remaining merge conflicts
araujof Sep 5, 2023
3d54fd4
Merge pull request #49 from sysflow-telemetry/go1.19-sigma
araujof Sep 6, 2023
4b5b7b8
chore(ci): removed deprecated set-output commands
araujof Sep 6, 2023
4d2b925
chore(ci): update deprecated actions
araujof Sep 6, 2023
2d51a16
feat(manifest): bumped UBI to 8.8-1032.1692772289
araujof Sep 6, 2023
416acd3
fix(ci): fix plugin builder tags
araujof Sep 6, 2023
849b115
fix(ci): fix plugin builder action
araujof Sep 6, 2023
d329715
fix(ci): fix regression error in CI
araujof Sep 6, 2023
11f8140
Merge pull request #54 from sysflow-telemetry/dev
araujof Sep 6, 2023
8648053
chore(apis): update sf-apis to track 0.6.0-rc1
araujof Sep 29, 2023
c0017d0
feat(docker): bump to ubi9
araujof Sep 29, 2023
9f18a66
chore(readme,changelog): preparation for 0.6.0-rc1
araujof Sep 29, 2023
ce8f0d5
fix(docker): bump runtime stage to ubi9
araujof Sep 29, 2023
b26dcd0
chore(merge): rebase dev
araujof Sep 29, 2023
847f4d8
chore(deps): bump gopkg.in/yaml.v3 in /plugins/handlers/printer (#55)
dependabot[bot] Sep 29, 2023
bd9b269
chore(deps): bump golang.org/x/net in /core (#56)
dependabot[bot] Sep 29, 2023
3366ff2
chore(readme): update security patches
araujof Sep 29, 2023
480d92f
fix(ci): fix build of release assets
araujof Sep 29, 2023
564d3f0
feat(manifest): bump ubi to 9.3-1361.1699548029
araujof Nov 30, 2023
bd025c6
fix(core): fix double call to StartWorkers() function when policy are…
msardara Feb 13, 2024
c6dc08b
chore(manifest): updated manifest for 0.6.1
araujof Feb 24, 2024
51f38d5
feat: bump to UBI 9.3-1610
araujof Apr 24, 2024
856e158
chore: updated manifest
araujof Apr 24, 2024
da09f0c
ecs: add args_count field
Vladimir-A May 18, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
218 changes: 218 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,218 @@
name: ci

on:
push:
branches:
- master
- dev
tags:
- '*'
pull_request:
branches:
- master
- dev
types:
- opened
- edited
- reopened
- synchronize
- ready_for_review
- unlocked
- review_requested
workflow_dispatch:

env:
DOCKER_REGISTRY_REPOSITORY: sysflowtelemetry/sf-processor
PLUGIN_BUILDER_DOCKER_REGISTRY_REPOSITORY: sysflowtelemetry/plugin-builder
GH_ORGANIZATION: sysflow-telemetry

jobs:
lint-core:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: 1.19
- name: Lint core module
uses: golangci/golangci-lint-action@v3
with:
version: v1.51.1
working-directory: core
args: --disable=errcheck --build-tags=flatrecord
lint-driver:
needs: lint-core
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: 1.19
- name: Lint driver module
uses: golangci/golangci-lint-action@v3
with:
version: v1.51.1
working-directory: driver
args: --disable=errcheck
docker:
needs: lint-driver
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Read manifest
shell: bash
run: |
echo "UBI_VERSION=$(awk -F'=' '/UBI_VERSION/{print $2}' makefile.manifest.inc)" >> $GITHUB_ENV
- name: Docker meta
id: meta_builder
uses: docker/metadata-action@v4
with:
images: |
${{ env.PLUGIN_BUILDER_DOCKER_REGISTRY_REPOSITORY }}
ghcr.io/${{ env.GH_ORGANIZATION }}/plugin-builder
tags: |
type=edge,branch=master
type=ref,event=branch
type=match,pattern=^\d.\d.\d$
type=ref,event=pr
type=sha,prefix=
type=sha,format=long,prefix=
labels: |
org.opencontainers.image.documentation=https://sysflow.readthedocs.io/
org.opencontainers.image.vendor=SysFlow
- name: Docker meta
id: meta
uses: docker/metadata-action@v4
with:
images: |
${{ env.DOCKER_REGISTRY_REPOSITORY }}
ghcr.io/${{ github.repository }}
tags: |
type=edge,branch=master
type=ref,event=branch
type=match,pattern=^\d.\d.\d$
type=ref,event=pr
type=sha,prefix=
type=sha,format=long,prefix=
labels: |
org.opencontainers.image.documentation=https://sysflow.readthedocs.io/
org.opencontainers.image.vendor=SysFlow
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to DockerHub
uses: docker/login-action@v2
if: ${{ github.event_name != 'pull_request' }}
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
if: ${{ github.event_name != 'pull_request' }}
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set build args
id: args
shell: bash
run: |
echo "UBI_VERSION=$(awk -F'=' '/UBI_VERSION/{print $2}' makefile.manifest.inc)" >> $GITHUB_ENV
echo "BRANCH=$(echo ${GITHUB_REF##refs/*/})" >> $GITHUB_ENV
echo "SHA_SHORT=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
- name: Build and push plugin builder image
id: docker_plugin_builder
uses: docker/build-push-action@v3
with:
push: ${{ github.event_name != 'pull_request' }}
target: base
tags: "${{ steps.meta_builder.outputs.tags }}"
labels: "${{ steps.meta_builder.outputs.labels }}"
build-args: |
BUILD_NUMBER=${{ env.SHA_SHORT }}
VERSION=${{ env.BRANCH }}
RELEASE=${{ env.SHA_SHORT }}
UBI_VER=${{ env.UBI_VERSION }}
- name: Build and push
id: docker_build
uses: docker/build-push-action@v3
with:
push: ${{ github.event_name != 'pull_request' }}
tags: "${{ steps.meta.outputs.tags }}"
labels: "${{ steps.meta.outputs.labels }}"
cache-from: type=registry,ref=ghcr.io/${{ env.GH_ORGANIZATION }}/plugin-builder:${{ env.SHA_SHORT }}
build-args: |
BUILD_NUMBER=${{ env.SHA_SHORT }}
VERSION=${{ env.BRANCH }}
RELEASE=${{ env.SHA_SHORT }}
UBI_VER=${{ env.UBI_VERSION }}
- name: push README to Dockerhub
uses: christian-korneck/update-container-description-action@v1
if: ${{ github.ref == 'refs/heads/master' && github.event_name != 'pull_request' }}
env:
DOCKER_USER: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKER_PASS: ${{ secrets.DOCKERHUB_TOKEN }}
with:
destination_container_repo: ${{ env.DOCKER_REGISTRY_REPOSITORY }}
provider: dockerhub
readme_file: "README.md"
- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}
release:
needs: docker
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Setup cmake
uses: jwlawson/[email protected]
with:
cmake-version: '3.16.x'
- name: Get version from tag
id: tag_name
shell: bash
run: |
GHREF=${GITHUB_REF#refs/tags/}; echo "CURRENT_VERSION=${GHREF%%-*}" >> $GITHUB_ENV
echo "CURRENT_TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
echo "SHA_SHORT=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
- name: Build Release Assets
id: build_release_assets
shell: bash
run: |
docker pull ${{ env.DOCKER_REGISTRY_REPOSITORY }}:${{ env.SHA_SHORT }}
docker tag ${{ env.DOCKER_REGISTRY_REPOSITORY }}:${{ env.SHA_SHORT }} ${{ env.DOCKER_REGISTRY_REPOSITORY }}:${{ env.CURRENT_TAG }}
make package
echo "DEB=$(ls ${{ github.workspace }}/scripts/cpack/*.deb)" >> $GITHUB_ENV
echo "RPM=$(ls ${{ github.workspace }}/scripts/cpack/*.rpm)" >> $GITHUB_ENV
echo "TARGZ=$(ls ${{ github.workspace }}/scripts/cpack/*.tar.gz)" >> $GITHUB_ENV
- name: Get Changelog Entry
id: changelog_reader
uses: mindsers/changelog-reader-action@v2
with:
version: ${{ env.CURRENT_VERSION }}
path: ./CHANGELOG.md
- name: Release
uses: softprops/action-gh-release@v1
with:
body: ${{ steps.changelog_reader.outputs.changes }}
token: ${{ secrets.GITHUB_TOKEN }}
prerelease: ( contains(env.CURRENT_VERSION, '-rc') || contains(env.CURRENT_VERSION, '-alpha') || contains(env.CURRENT_VERSION, '-beta') )
draft: true
files: |
${{ env.DEB }}
${{ env.RPM }}
${{ env.TARGZ }}
11 changes: 10 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,21 @@
.antlr
driver/driver
driver/sfprocessor
driver/test.sh
driver/*.perf
driver/*.pprof
*.pdf
*.prof
*.vlog
*.local.json
*.DS_Store
**/goda

# Manifest
driver/manifest/manifest.go
driver/manifest/manifest.gobak
driver/manifest/manifest.gobak

# Cpack
scripts/cpack/_CPack_Packages/
scripts/cpack/build/
scripts/cpack/sfprocessor*
Loading
Loading