Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1593 commits
Select commit Hold shift + click to select a range
a280dcb
Support OpenSearch 2.x
jertel Jun 7, 2022
2e3d3ed
Add missing import
jertel Jun 7, 2022
fd3b14d
Add missing unit test
jertel Jun 7, 2022
c3c2d6e
Update docs
jertel Jun 7, 2022
2dcc956
Merge pull request #880 from jertel/os2
jertel Jun 7, 2022
d903f3b
Release 2.5.1
jertel Jun 10, 2022
54509de
Upgrade Sphinx 5.0.2 and pylint 2.14.3
nsano-rururu Jun 20, 2022
7179705
Update ChangeLog
nsano-rururu Jun 20, 2022
601bfdd
Merge pull request #891 from nsano-rururu/update_pylint_and_sphinx
jertel Jun 20, 2022
5d837a5
Kibana Discover support kibana 8.3
nsano-rururu Jun 29, 2022
5c9de90
Update ChangeLog
nsano-rururu Jun 29, 2022
f629799
Merge pull request #897 from nsano-rururu/kibana_discover_830
jertel Jun 29, 2022
a28af14
for HTTP POST 2, now json-escaping all strings replaced by the jinja2…
ddurham2 Jul 1, 2022
e43eeda
updated CHANGELOG.md concerning PR #898
ddurham2 Jul 1, 2022
d1c76ec
only scaping match values that are part of a json decode
ddurham2 Jul 4, 2022
dbd7b01
altered http-post2 unit tests to include some control characters, tha…
ddurham2 Jul 4, 2022
c3c3702
changelog tweak
ddurham2 Jul 4, 2022
c9dc481
Merge pull request #898 from ddurham2/json-escape
jertel Jul 4, 2022
84e4180
Update helm chart so that prometheus endpoint is now configured under…
Jul 8, 2022
dcbdea2
add PR information to changelog
Jul 11, 2022
5f9e97e
update readme
Jul 12, 2022
e4ce60e
Fix README typos.
Jul 13, 2022
71a41f1
Fix CHANGELOG typos.
Jul 13, 2022
a5807f6
Update README.md
jertel Jul 13, 2022
e1c7c27
Merge pull request #902 from PedroMSantosD/master
jertel Jul 14, 2022
53b8fd8
Upgrade pylint 2.14.5, tox 3.25.1
nsano-rururu Jul 24, 2022
07074ae
Update ChangeLog
nsano-rururu Jul 24, 2022
7de7155
Merge pull request #911 from nsano-rururu/update_pylint_and_tox
jertel Jul 24, 2022
ccbff51
Release 2.6.0
jertel Jul 30, 2022
ad91bec
Add telegram parse_mode option
Aug 8, 2022
dc869e3
Added missing unit test; Improved docs on new feature; Added missing …
jertel Aug 8, 2022
91b5967
Merge pull request #924 from polshe-v/telegram_parse_mode
jertel Aug 8, 2022
9cdf36f
Pin exotel dependency to 0.1.5 due to security issues in 0.1.6
anroots-tw Aug 24, 2022
dfc6efb
Update changelog
anroots-tw Aug 24, 2022
f8fdc1d
Merge pull request #931 from anroots-tw/exotel-version
jertel Aug 24, 2022
a31bf84
Kibana Discover support kibana 8.4
nsano-rururu Aug 27, 2022
3df2957
Update ChangeLog
nsano-rururu Aug 27, 2022
87ab6b1
Merge pull request #935 from nsano-rururu/kibana_discover_840
jertel Aug 27, 2022
f16b302
update pylint 2.15.2, shinx 5.1.1, tox 3.26.0
nsano-rururu Sep 8, 2022
4fda4e4
Update ChangeLog
nsano-rururu Sep 8, 2022
6f55436
Merge pull request #937 from nsano-rururu/update_pylint_shinx_tox
jertel Sep 8, 2022
127eb5a
pytest 7.1.2 to 7.1.3
nsano-rururu Sep 12, 2022
e1bf63a
Update ChangeLog
nsano-rururu Sep 12, 2022
16c9d2b
Merge pull request #941 from nsano-rururu/pytest713
jertel Sep 12, 2022
1d7088c
Clarify listening port FAQ
jertel Sep 14, 2022
e8a4462
Release 2.7.0
jertel Sep 20, 2022
42ecd51
Add extraContainers to values
Oct 6, 2022
387e8fc
Update chart version to 2.7.1
Oct 6, 2022
c613bde
pylint 2.15.3, shinx 5.2.3, pytest-cov 4.0.0
nsano-rururu Oct 7, 2022
ff9819f
Update ChangeLog
nsano-rururu Oct 7, 2022
2fc0750
add google_proxy
nsano-rururu Oct 9, 2022
0578a45
fix code
nsano-rururu Oct 9, 2022
58fb5d5
Update CHANGELOG.md
jertel Oct 10, 2022
49ccbc7
Merge pull request #972 from nsano-rururu/update_pylint_pytest_cov_sp…
jertel Oct 10, 2022
436306b
Merge branch 'jertel:master' into master
Kasape Oct 10, 2022
65f5162
Fix missing key for extra containers
Oct 10, 2022
1ccc9b4
Move extraContainers
Oct 10, 2022
06600fc
Update version
Oct 10, 2022
10ddec8
Change indentation
Oct 10, 2022
1d47524
Fix JIRA assignee
Oct 10, 2022
d518099
Update unit tests
Oct 10, 2022
19f7ad0
Update CHANGELOG.md
Oct 10, 2022
fa37aaf
fix unit test typo
Oct 10, 2022
e70bd61
Merge pull request #974 from jorge-gyant/fix-jira-assignee-user
jertel Oct 10, 2022
f5dde3e
Merge branch 'jertel:master' into master
Kasape Oct 11, 2022
89130e9
Return chart version before PR
Oct 11, 2022
a414f25
Update CHANGELOG.md
Kasape Oct 11, 2022
5ac26d1
Minor grammar changes and typo fixes
Oct 11, 2022
625fe3e
Remove empty row in changelog
Oct 11, 2022
1799cec
Merge pull request #975 from Kasape/master
jertel Oct 11, 2022
3230c11
feat: add timestamp_to_datetime_format_expr optional rule paramameter
Oct 12, 2022
b9ec370
Correct changelog formatting
jertel Oct 13, 2022
faeb414
Fox docs formatting and typos
jertel Oct 13, 2022
a2f2c5c
test: add test for custom timestamp_type
Oct 13, 2022
c614962
Merge pull request #978 from thpiron/feat/add_pre_timestamp_to_dateti…
jertel Oct 13, 2022
bdbce33
Updated index configuration documentation
nsano-rururu Oct 16, 2022
4f09142
Update CHANGELOG.md
nsano-rururu Oct 16, 2022
97c7223
Merge pull request #979 from nsano-rururu/update_docs_index
jertel Oct 16, 2022
26a1bb1
Change 'metrics' to 'metrics.enabled'
Kasape Oct 17, 2022
1819a82
Update CHANGELOG
Kasape Oct 17, 2022
a28ab5e
Fix number of PR in changelog
Kasape Oct 17, 2022
a2a943b
Merge pull request #981 from Kasape/master
jertel Oct 17, 2022
3ea105f
Release 2.8.0
jertel Oct 21, 2022
fba5211
Update pytest, pylint, pytest-xdist, sphinx, tox
nsano-rururu Oct 26, 2022
4fcdade
Update CHANGELOG.md
nsano-rururu Oct 26, 2022
741789c
Upgrade to python 3.11
jertel Oct 26, 2022
a6369cf
Merge pull request #989 from jertel/up311
jertel Oct 27, 2022
5f03c0e
Merge branch 'master' into update_pytest_etc
jertel Oct 27, 2022
dc32b5e
Merge pull request #988 from nsano-rururu/update_pytest_etc
jertel Oct 27, 2022
a1dd2fe
docs: update README.md
vn7n24fzkq Nov 1, 2022
721c7c8
Kibana Discover support kibana 8.5
nsano-rururu Nov 1, 2022
b5d0103
Update CHANGELOG.md
nsano-rururu Nov 1, 2022
a33709d
Merge pull request #993 from nsano-rururu/kibana_discover_850
jertel Nov 1, 2022
4539ce6
Merge branch 'master' into patch-1
jertel Nov 2, 2022
2905873
Merge pull request #992 from vn7n24fzkq/patch-1
jertel Nov 2, 2022
ead2c3e
Fix Amazon SNS Alerter
nsano-rururu Nov 9, 2022
f559ff2
Update CHANGELOG.md
nsano-rururu Nov 9, 2022
4955334
Update CHANGELOG.md
nsano-rururu Nov 9, 2022
72c6103
Merge pull request #1003 from nsano-rururu/fix_sns
jertel Nov 9, 2022
d123a4e
Add realert key to rule configuration
Goggin Nov 9, 2022
0881d1f
Update CHANGELOG
Goggin Nov 9, 2022
e104bb6
If running silence with query, use realert key
Goggin Nov 9, 2022
b0ddf9e
Correct changelog entry format
jertel Nov 10, 2022
766a654
Merge pull request #1004 from Goggin/feat_realert_key
jertel Nov 11, 2022
5d58fa7
add mattermostk_emoji_override
nsano-rururu Nov 12, 2022
4a003d2
Update CHANGELOG
nsano-rururu Nov 12, 2022
477653b
fix typo
nsano-rururu Nov 12, 2022
ac6dfeb
Merge pull request #1011 from nsano-rururu/add_mattermost_emoji
jertel Nov 12, 2022
5083410
feat: add verify toggle for Kibana Shorten URL API
BenJeau Nov 17, 2022
9811169
feat: rename kibana_verify to kibana_verify_certs
BenJeau Nov 17, 2022
293f7da
Update schema.yaml
jertel Nov 17, 2022
3926098
docs: fix spacing issue
BenJeau Nov 17, 2022
34804f5
Merge pull request #1013 from BenJeau/feat-kibana-verify
jertel Nov 17, 2022
3f8d68b
Udpate alert manager docs
jertel Nov 24, 2022
f4acf7b
Refactor loader unit tests due to jsonschema 4.17.1
jertel Nov 24, 2022
fc7e1a3
Fix doc formatting
jertel Nov 24, 2022
89d7053
Release 2.9.0
jertel Dec 2, 2022
94f7e8c
Clarify Jira auth.
jertel Dec 9, 2022
516aed1
Update CHANGELOG.md
jertel Dec 9, 2022
a82c1d5
init
malinkinsa Dec 12, 2022
a43776e
Remove unused imports
malinkinsa Dec 12, 2022
182d44c
rename field and add docs
malinkinsa Dec 12, 2022
0dffc8c
fix
malinkinsa Dec 12, 2022
a567168
Update CHANGELOG.md
malinkinsa Dec 12, 2022
be16acf
Merge branch 'master' into gelf_http
malinkinsa Dec 13, 2022
9b9411d
fix error Title underline too short
malinkinsa Dec 13, 2022
89ad0fd
Update minimum versions for third-party dependencies
nsano-rururu Dec 15, 2022
6f6feca
Update CHANGELOG.md
nsano-rururu Dec 15, 2022
ebd467b
Merge pull request #1051 from nsano-rururu/update_setup_py
jertel Dec 15, 2022
fe28adc
Pass all matches to alerta alerter
costevens Dec 28, 2022
1ffe85c
Update the alerta_test.py to send a list too
costevens Dec 29, 2022
759f19f
Add unit test for proving nested array lookups
jertel Dec 30, 2022
90d1465
Rename from Gelf to GelfAlerter
malinkinsa Jan 1, 2023
3afc764
Merge branch 'master' into gelf_http
jertel Jan 2, 2023
35bab81
Update elastalert.rst
nsano-rururu Jan 2, 2023
d482937
Update ruletypes.rst
nsano-rururu Jan 2, 2023
603f0b7
Update gelf.py
nsano-rururu Jan 2, 2023
d2e9c6e
Update gelf_test.py
nsano-rururu Jan 2, 2023
b7961ad
Update gelf_test.py
nsano-rururu Jan 2, 2023
475bad4
Update schema.yaml
malinkinsa Jan 2, 2023
b0d5fb6
Merge branch 'master' into alerta-matches-fix
jertel Jan 2, 2023
a981063
Add gelf_log_level values
malinkinsa Jan 2, 2023
3631473
Merge pull request #1050 from malinkinsa/gelf_http
jertel Jan 3, 2023
cbfe33b
Update CHANGELOG.md
jertel Jan 4, 2023
0c67913
Merge branch 'master' into alerta-matches-fix
jertel Jan 4, 2023
e25b0a0
Merge pull request #1068 from dakotacody/alerta-matches-fix
jertel Jan 4, 2023
629cc0b
[docs] Clarify that import supports a list
Jan 6, 2023
b434a24
Update CHANGELOG for docs import directive
Jan 6, 2023
e850cee
Merge pull request #1075 from sqrooted/patch-1
jertel Jan 6, 2023
cab9c21
Allow *_ca_certs to be a string for specifying custom ca bundles
Goggin Jan 13, 2023
8f19fa8
Kibana Discover support kibana 8.6
nsano-rururu Jan 14, 2023
e5521bb
Update CHANGELOG.md
nsano-rururu Jan 14, 2023
c36bb74
Merge pull request #1080 from nsano-rururu/kibana_discover860
jertel Jan 14, 2023
568115d
Merge branch 'jertel:master' into fix_ca_certs_schema
Goggin Jan 17, 2023
aef7296
Update documentation
Goggin Jan 17, 2023
3a64675
options -> option
Goggin Jan 17, 2023
0a90f49
Update changelog
Goggin Jan 19, 2023
8a56a0a
Correct changelog syntax
jertel Jan 19, 2023
35c1a32
Merge pull request #1082 from Goggin/fix_ca_certs_schema
jertel Jan 19, 2023
d96dfa4
Fix UnicodeEncodeError in PagerDutyAlerter
nsano-rururu Jan 24, 2023
98e39db
Update CHANGELOG.md
nsano-rururu Jan 24, 2023
02858ea
Merge pull request #1091 from nsano-rururu/request_boby_utf8
jertel Jan 25, 2023
9121d44
Adds ags for title, type, and source in The Hive alterter args
fandigunawan Jan 28, 2023
07bec64
Adds pull request number
fandigunawan Jan 28, 2023
33ea4a1
fixed documentation; removed unsupported logger; added missing unit t…
jertel Jan 28, 2023
474e724
clarify docs
jertel Jan 28, 2023
a6276a1
Merge pull request #1092 from fandigunawan/master
jertel Jan 28, 2023
5b77c92
fix scan timeframe with use_terms_query
rschirin Jan 31, 2023
e532e9e
add missing unit test and changelog
jertel Feb 1, 2023
295ca06
Update CHANGELOG.md
jertel Feb 1, 2023
8b9eaac
Merge pull request #1097 from rschirin/fix-scan-timeframe
jertel Feb 1, 2023
0693f91
renamed overwrites to overrides
akusei Feb 2, 2023
face7f6
removed hardcoded file rule loader
akusei Feb 2, 2023
6d69451
added breaking change
akusei Feb 2, 2023
e9d08e2
changed iteritems to iter
akusei Feb 2, 2023
06ce3a3
added tests for loading config with defaults and overrides
akusei Feb 2, 2023
147f955
added check for newer "docker compose" command
akusei Feb 2, 2023
8e83066
Update CHANGELOG.md
jertel Feb 2, 2023
0d4306b
Merge pull request #1100 from akusei/remove_overwrite
jertel Feb 2, 2023
49eb7d1
fixed spacing
akusei Feb 2, 2023
1cc27bb
added alternate jinja root
akusei Feb 2, 2023
6f4959b
test coverage for added functionality
akusei Feb 9, 2023
0afd5be
data file can now be a single json object or a list of json objects
akusei Feb 9, 2023
d9ebfbb
error checking and alternate payload/header syntax
akusei Feb 9, 2023
0ceb81d
test for unexpected python errors while rendering template
akusei Feb 10, 2023
7ec32f4
catch-all except handler for payload and headers
akusei Feb 10, 2023
6bdc24f
updated docs
akusei Feb 10, 2023
f0079b9
updated changelog
akusei Feb 10, 2023
bb3a848
fixed typo in test
akusei Feb 10, 2023
443ac8f
Merge pull request #1104 from akusei/http_post2_alternate_jinja_root
jertel Feb 11, 2023
1c3b8e2
Update CHANGELOG.md
jertel Feb 11, 2023
afc08c8
Migrated All Changes
ajaywk7 Feb 15, 2023
a352583
checkpoint commit
ajaywk7 Feb 15, 2023
b2720ac
bugs fixed and all rules tested
ajaywk7 Feb 28, 2023
00d7f82
Error rate testcases Added
ajaywk7 Mar 3, 2023
f97dcde
Dockerfile added
ajaywk7 Mar 6, 2023
d550d91
changed libc image to arm libc.musl-x86_64.so.1
ajaywk7 Mar 6, 2023
68ea0f9
removed arm libc.musl-x86_64.so.1
ajaywk7 Mar 6, 2023
53cf1a5
Dockerfile - making base image 3.9-alpine
ajaywk7 Mar 6, 2023
495d5ec
Dockerfile - config.yaml path update
ajaywk7 Mar 6, 2023
eb2b982
removed unnecessary changes
ajaywk7 Mar 21, 2023
c6d3e03
changed the files accordingly
ajaywk7 Mar 21, 2023
e0adedb
removed unwanted changes
ajaywk7 Mar 21, 2023
245fbcc
Added docker changes
ajaywk7 Mar 21, 2023
8757561
fixed terms-query error
ajaywk7 Mar 24, 2023
2112e70
removed unnecessary print statments
ajaywk7 Mar 24, 2023
95fb088
Merge pull request #18 from freshdesk/2.9.0-terms-query-changes
ajaywk7 Mar 24, 2023
f934df3
es-7 create_index testing
ajaywk7 Mar 27, 2023
6559448
removed print statements from dockerfile
ajaywk7 Mar 27, 2023
891054c
added comments for PR readability
ajaywk7 Mar 27, 2023
9a27131
Update CHANGELOG.md
ajaywk7 Mar 28, 2023
f2a4319
Update CHANGELOG.md
ajaywk7 Mar 28, 2023
d235826
Update CHANGELOG.md
ajaywk7 Mar 28, 2023
b775438
removed unnecessary method args
ajaywk7 Mar 28, 2023
141bd6e
initial commit
ajaywk7 Apr 3, 2023
f3fc092
added rule name to send alert logs
ajaywk7 Apr 5, 2023
7dcdc6b
create-index bug fix
ajaywk7 Apr 20, 2023
06a382a
separated six and seven put mapping definitions
ajaywk7 Apr 20, 2023
da97c30
Merge pull request #20 from freshdesk/create-index-bug-fixes
ajaywk7 Apr 20, 2023
279ca89
fix default operator
aravind-musigumpula May 12, 2023
3473c31
Merge pull request #21 from freshdesk/fix_default_operator
aravind-musigumpula May 12, 2023
4ae2fa5
elastalert error for default operator
aravind-musigumpula May 12, 2023
82ef1fb
Merge pull request #22 from freshdesk/error_default_operator
aravind-musigumpula May 12, 2023
2af9dc0
fix response and query for percentile query
aravind-musigumpula May 16, 2023
0447628
add testcase for percentile metric aggregation
aravind-musigumpula May 17, 2023
1a944ef
Merge pull request #23 from freshdesk/elastalert-percentile-fix-error
aravind-musigumpula May 17, 2023
dac7b19
add keyed false
aravind-musigumpula Jun 8, 2023
d4c500b
New term integration (#24)
ajaywk7 Jun 9, 2023
e2a47fd
Update CHANGELOG.md
ajaywk7 Jun 9, 2023
6f3978d
query_delay support in conf added
ajaywk7 Jun 14, 2023
fc3e0a7
new-term - filter query bug fix
ajaywk7 Jun 19, 2023
85c2059
new-term - filter query bug fix
ajaywk7 Jun 19, 2023
b2b8525
Merge pull request #25 from freshdesk/add-query-delay-config
Subrahmanyam-Gollapalli Jul 5, 2023
3a7a86c
[HAYS-4850]changing percentage match query (#27)
sivatarunp Aug 30, 2023
71f9916
updating changelog
sivatarunp Aug 31, 2023
a8b62c7
New term optimisation (#26)
ajaywk7 Sep 4, 2023
80730bd
add if result is empty dict
aravind-musigumpula Sep 21, 2023
be8094b
include using use_count_query
aravind-musigumpula Sep 25, 2023
bdb737e
add comments
aravind-musigumpula Sep 26, 2023
6c7b5e4
Merge pull request #28 from freshdesk/include_fields
aravind-musigumpula Sep 26, 2023
deed439
remove debug statement
aravind-musigumpula Sep 26, 2023
603cfd9
add alert_time as label in alert
aravind-musigumpula Jan 17, 2024
7738a07
change the label name
aravind-musigumpula Jan 18, 2024
a4de602
Merge pull request #29 from freshdesk/add_alert_time_label
aravind-musigumpula Jan 18, 2024
0961faf
converting alert info to dictionary based on a flag, add adv query su…
sivatarunp Jul 15, 2024
ddf3e77
X env staging header addition (#33)
ajaywk7 Jul 30, 2024
ed6cf65
Upgrading to os (#34)
sivatarunp Jul 31, 2024
b66348d
fix timestamp issue
aravind-musigumpula Aug 5, 2024
f77e979
Merge pull request #35 from freshdesk/fix-timestamp-sherlock
aravind-musigumpula Aug 5, 2024
471f96c
fixing error
sivatarunp Aug 7, 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
Binary file added .DS_Store
Binary file not shown.
3 changes: 3 additions & 0 deletions .github/ISSUE_TEMPLATE
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
STOP - You are probably in the wrong place! The majority of topics are better suited for the Discussion forum. You can access this area by clicking The Discussions link above. Please search the discussions area first, for keywords that could be associated with the problem you are experiencing. If you do not see an existing discussion, please open a new discussion and include sufficient details for someone in the community to help you.

If you are confident you have discovered a legitimate issue, attach logs and reproduction steps to this issue. Failure to provide sufficient information will likely cause this issue to go stale and eventually be deleted.
31 changes: 31 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
## Description

<!--
Provide a description for your pull request. Note any breaking changes.
-->

## Checklist

<!--
The following checklist items must be completed before PRs can be merged.
-->

- [ ] I have reviewed the [contributing guidelines](https://github.com/jertel/elastalert2/blob/master/CONTRIBUTING.md).
- [ ] I have included unit tests for my changes or additions.
- [ ] I have successfully run `make test-docker` with my changes.
- [ ] I have manually tested all relevant modes of the change in this PR.
- [ ] I have updated the [documentation](https://elastalert2.readthedocs.io).
- [ ] I have updated the [changelog](https://github.com/jertel/elastalert2/blob/master/CHANGELOG.md).


## Questions or Comments

<!--
If any of the checklist items do not apply, note the reasoning for each. If you're simply
upgrading a library version, you do not need to explain why the docs or unit tests checklist
items are not checked, however the changelog should be updated to reflect the new version.

If you have questions about completing this PR, or about the process, note them here.

If you are not ready for this PR to be reviewed please mention that here.
-->
28 changes: 28 additions & 0 deletions .github/workflows/master_build_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: master_build_test

# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [ master ]
pull_request:
branches: [ master ]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2

# Runs a single command using the runners shell
- name: Build and run tests
run: make test-docker
86 changes: 86 additions & 0 deletions .github/workflows/publish_image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
name: publish_image

on:
push:
# Publish `master` as Docker `latest` image.
branches:
- master

tags:
- 2.*

env:
IMAGE_NAME: elastalert2
DOCKER_REPO: jertel/elastalert2

jobs:
push:
environment: Main

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Log into GitHub Registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login docker.pkg.github.com -u ${{ github.actor }} --password-stdin

- name: Log into Docker Registry
run: echo "${{ secrets.DOCKER_TOKEN }}" | docker login -u ${{ secrets.DOCKER_USERNAME }} --password-stdin

- name: Install buildx
id: buildx
uses: crazy-max/ghaction-docker-buildx@v1
with:
version: latest

- name: Build and Push multi-arch to Docker Hub
run: |
# Strip git ref prefix from version
VERSION=$(echo "${{ github.ref }}" | sed -e 's,.*/\(.*\),\1,')

# Use Docker `latest` tag convention
[ "$VERSION" == "master" ] && VERSION=latest

TAG2=""
if [[ "$VERSION" == "2."* ]]; then
TAG2="--tag $DOCKER_REPO:2"
fi

echo VERSION=$VERSION
echo TAG2=$TAG2

docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
docker buildx build \
--platform=linux/amd64,linux/arm64 \
--output "type=image,push=true" \
--file ./Dockerfile . \
--tag $DOCKER_REPO:$VERSION $TAG2

- name: Build and push image to GitHub
run: |
docker build . --file Dockerfile --tag $IMAGE_NAME

IMAGE_ID=docker.pkg.github.com/${{ github.repository }}/$IMAGE_NAME

# Change all uppercase to lowercase
IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]')

# Strip git ref prefix from version
VERSION=$(echo "${{ github.ref }}" | sed -e 's,.*/\(.*\),\1,')

# Use Docker `latest` tag convention
[ "$VERSION" == "master" ] && VERSION=latest

echo IMAGE_ID=$IMAGE_ID
echo VERSION=$VERSION

# Push to GitHub Package
docker tag $IMAGE_NAME $IMAGE_ID:$VERSION
docker push $IMAGE_ID:$VERSION

if [[ "$VERSION" == "2."* ]]; then
# Push to GitHub Package
docker tag $IMAGE_NAME $IMAGE_ID:2
docker push $IMAGE_ID:2
fi
33 changes: 33 additions & 0 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# This workflow will upload a Python Package using Twine when a release is created
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries

name: upload_python_package

on:
push:
tags:
- 2.*

jobs:
deploy:
environment: Main

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Build and publish
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
run: |
python setup.py sdist bdist_wheel
twine upload dist/*
28 changes: 28 additions & 0 deletions .github/workflows/upload_chart.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: upload_chart

on:
push:
tags:
- 2.*

jobs:
publish:
environment: Main
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Install Helm
uses: azure/setup-helm@v1
with:
version: v3.4.0

- name: Run chart-releaser
uses: J12934/helm-gh-pages-action@master
with:
charts-folder: chart
access-token: "${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}"
deploy-branch: gh-pages
10 changes: 9 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
config.yaml
/config.yaml
.tox/
.coverage
.idea/*
.cache/
__pycache__/
*.pyc
virtualenv_run/
.venv
*.egg-info/
dist/
venv/
Expand All @@ -16,3 +17,10 @@ build/
my_rules
*.swp
*~
/rules/
mod/
comparisonFile
comparisonFile2
examples/ex/*
examples/ex1/*
comparisonFile*
10 changes: 2 additions & 8 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
repos:
- repo: git://github.com/pre-commit/pre-commit-hooks
- repo: https://github.com/pre-commit/pre-commit-hooks
sha: v1.1.1
hooks:
- id: trailing-whitespace
Expand All @@ -13,13 +13,7 @@ repos:
- id: debug-statements
- id: requirements-txt-fixer
- id: name-tests-test
- repo: git://github.com/asottile/reorder_python_imports
- repo: https://github.com/asottile/reorder_python_imports
sha: v0.3.5
hooks:
- id: reorder-python-imports
- repo: git://github.com/Yelp/detect-secrets
sha: 0.9.1
hooks:
- id: detect-secrets
args: ['--baseline', '.secrets.baseline']
exclude: .*tests/.*|.*yelp/testing/.*|\.pre-commit-config\.yaml
1 change: 1 addition & 0 deletions .python-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.11
20 changes: 20 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# .readthedocs.yaml
# Read the Docs configuration file
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details

# Required
version: 2

# Build documentation in the docs/ directory with Sphinx
sphinx:
configuration: docs/source/conf.py

# Optionally build your docs in additional formats such as PDF
formats:
- pdf
- htmlzip

# Optionally set the version of Python and requirements required to build your docs
python:
install:
- requirements: docs/source/requirements.txt
27 changes: 0 additions & 27 deletions .secrets.baseline

This file was deleted.

42 changes: 0 additions & 42 deletions .travis.yml

This file was deleted.

Loading