8000 [pull] master from infobyte:master by pull[bot] · Pull Request #1 · tonghuaroot/faraday · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[pull] master from infobyte:master #1

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

Open
wants to merge 9,232 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
9232 commits
Select commit Hold shift + click to select a range
6e10f56
remove metadata
Feb 26, 2025
d8ab766
Merge branch 'tkt_white_7911_credential_model' into tkt_white_7912_cr…
Feb 26, 2025
c1e2d66
improve schema
Feb 26, 2025
9b3f66e
added parent
Feb 26, 2025
1ad6e94
Merge branch 'tkt_white_7911_credential_model' into tkt_white_7912_cr…
Feb 26, 2025
a9c33c8
working basic api
Feb 26, 2025
9e86789
improved schema logic
Feb 26, 2025
5461fdb
add save parameters endpoint for executors
Feb 27, 2025
ffcbaff
add filter to agent schedulers
Feb 27, 2025
e4fa6d4
add tests
Feb 27, 2025
9a8efa1
add changelog
Feb 27, 2025
14fcb62
Merge branch 'tkt_white_7874_fix_session_timeout' into 'white/dev'
Feb 27, 2025
b25a52f
initial tests
Feb 27, 2025
f1e1418
add metadata
Feb 27, 2025
1ce6461
Merge branch 'tkt_white_7911_credential_model' into tkt_white_7912_cr…
Feb 27, 2025
640aa92
fix migration
Feb 27, 2025
dc56235
Merge branch 'tkt_white_7911_credential_model' into tkt_white_7912_cr…
Feb 27, 2025
510c71e
tests
Feb 27, 2025
f950cd3
fixed datetime factory
Feb 27, 2025
6f16601
fix test import
Feb 27, 2025
d92a184
Merge branch 'tkt_white_7830_bulk_activate_workspace' into 'white/dev'
Feb 28, 2025
d9dffce
add description to agents
Feb 28, 2025
a1ae2a1
fix pylint
Feb 28, 2025
30dca14
Merge branch 'tkt_white_7905_count_schedulers_white' of gitlab.com:fa…
Feb 28, 2025
368ffd1
Merge branch 'tkt_white_7905_count_schedulers_white' into 'white/dev'
Feb 28, 2025
0d1ba78
add cred vuln test
Feb 28, 2025
20fb608
added more robust tests
Feb 28, 2025
5147235
Merge branch 'refs/heads/white/dev' into white/staging
Feb 28, 2025
3ef4a20
Add missed models and migrations.
Feb 28, 2025
4b9a847
Merge branch 'refs/heads/white/dev' into white/staging
Feb 28, 2025
320b07b
add description to schema
Feb 28, 2025
7617f2e
changelog
Mar 5, 2025
af73712
Merge branch 'white/dev' of gitlab.com:faradaysec/faraday into tkt_wh…
Mar 5, 2025
f62b0ec
add metadata and fixed migration
Mar 5, 2025
ea9df28
change agent status logic
Mar 5, 2025
7f4aa2a
add description on cloud agents
Mar 5, 2025
fc2e24e
erase print
Mar 5, 2025
b9cb2f2
add changelog
Mar 5, 2025
50321b3
add filters for agents
Mar 6, 2025
e13352d
Merge branch 'white/dev' of gitlab.com:faradaysec/faraday into tkt_wh…
Mar 6, 2025
48ae287
added tests
Mar 6, 2025
32437a2
fix test
Mar 6, 2025
972cd82
add count to filter response
Mar 6, 2025
78a060b
removed duplicated code
Mar 6, 2025
a78fd4a
readded deleted test
Mar 7, 2025
242ae29
Merge branch 'tkt_white_7911_credential_model' into tkt_white_7912_cr…
Mar 7, 2025
e487dce
add filter
Mar 10, 2025
5c0fc9b
added test
Mar 11, 2025
d79b896
fix host cred test
Mar 11, 2025
42e7e9b
Add more flexible configuration
Mar 11, 2025
c502e55
Modify celery version from 5.3 to 5.4. Also run pynixify
Mar 12, 2025
3de48cb
Add celery_queue_prefix to separate keys in shared redis instance.
Mar 12, 2025
62c00dc
add agent execution updates on run status and on agent disconnect
Mar 12, 2025
486b393
reorganize imports on dispatcher.py
Mar 12, 2025
d57e255
Run pynixify and update swagger
Mar 13, 2025
1e6383c
Ready for release 5.12.0
Mar 13, 2025
bc0f972
Merge branch 'refs/heads/white/dev' into white/staging
Mar 13, 2025
d220e44
Merge branch 'refs/heads/white/staging' into white/master
Mar 13, 2025
ae259aa
add run_id index and unify agent_execution filter results
Mar 13, 2025
1c4f0cf
Merge branch 'refs/heads/white/dev' into tkt_white_7895_agents_category
Mar 13, 2025
34d3432
Merge branch 'refs/heads/white/dev' into tkt_white_7780_change_count_…
Mar 13, 2025
39acc34
fix migration
Mar 14, 2025
459f603
fix migration
Mar 14, 2025
a3e758f
add null filter to agent executions
Mar 14, 2025
397ec32
Merge branch 'refs/heads/white/dev' into tkt_white_7857_scheduler_filter
Mar 14, 2025
58e2217
add tests for agent execution
Mar 18, 2025
5c3328f
Fix flake8
Mar 18, 2025
ddd2502
add tests for save parameters
Mar 19, 2025
d6ad79c
add update service count on service updates
Mar 19, 2025
7aa36da
fix test
Mar 19, 2025
fcc8b8f
add comment
Mar 19, 2025
2f7dfa0
add save parameters data fail tests
Mar 20, 2025
f58f634
erase comments
Mar 21, 2025
d7f9c59
change run_id to run_uuid
Mar 21, 2025
e465d6d
change run_id to run_uuid in all uses and changed tests
Mar 21, 2025
b8adf64
add comment
Mar 24, 2025
130182b
add comment
Mar 24, 2025
23b60e2
idle timeout for white
Mar 25, 2025
5106fef
Remove comments
Mar 25, 2025
97b1ce5
fix changelog
Mar 25, 2025
67f6302
improve test
Mar 25, 2025
5550215
Add broker/backend validation.
Mar 25, 2025
064cb6b
Add changelog
Mar 25, 2025
17e2fcd
add count = 0 tests
Mar 25, 2025
43e0055
erase bad comments
Mar 26, 2025
516fd6f
workspace_name variable in host perform create
Mar 26, 2025
92d18fa
workspace_name variable on perform_delete vulns workspaced
Mar 26, 2025
7b65b54
variable workspace_name in vulns workspaced
Mar 26, 2025
5d6abd4
fix migrate when workspace has no hosts in it
Mar 26, 2025
7b4ad42
refactor generate filter query code
Mar 26, 2025
7593356
check if this pass tests
Mar 27, 2025
d0608ba
check if this pass test
Mar 27, 2025
9df1215
add comment
Mar 27, 2025
21336cf
fix docstring
Mar 27, 2025
ef1d8a2
ADD column filtering
Mar 27, 2025
4bdfcb1
ADD column filtering
Mar 27, 2025
5d5e857
add test for csv limited export
Mar 27, 2025
406341d
add relationships to host and service
Mar 28, 2025
b5e4aef
add all comands ids in agent_execution rows
Mar 28, 2025
a99c287
Merge branch 'tkt_white_7901_fix_context_count' into 'white/dev'
Mar 28, 2025
6c32382
add count to credentials envelope response
Mar 28, 2025
101ff2b
add update_date
Mar 28, 2025
f42e695
add unique constraint to credentials and update tests for validation
Mar 28, 2025
1014be1
add unique constraint to credential model for username, password, end…
Mar 28, 2025
18a19bf
Add import csv and export csv
Mar 28, 2025
6bfe8a0
FIX credentials count
Mar 31, 2025
197e1f2
Rename import csv
Mar 31, 2025
923046f
Merge branch 'tkt_white_7780_change_count_logic_for_workspaces2' into…
Mar 31, 2025
9aa7880
improve export csv test
Mar 31, 2025
280aadb
fix changelog
Mar 31, 2025
746b68c
ADD bulk create credentials from CSV test
Apr 1, 2025
bb614b1
MOD update import_csv and filter route documentation
Apr 1, 2025
0f86b2a
ADD credential filter schema and test for all fields
Apr 1, 2025
b22471e
Merge branch 'tkt_white_7857_scheduler_filter' into 'white/dev'
Apr 1, 2025
ad1ae79
Merge branch 'tkt_white_7866_rabbitmq_support_as_broker' into 'white/…
Apr 1, 2025
1c36c63
ADD update date field to VulnerabilitySchema and filter columns
Apr 1, 2025
a6f7a83
push model to white
Apr 3, 2025
cfe4f9c
add migration to white
Apr 3, 2025
465232a
add changelog
Apr 3, 2025
51c7570
Merge branch 'tkt_white_7670_filter_by_columns' into tkt_white_7893_f…
Apr 3, 2025
70a1d68
fix migrations
Apr 4, 2025
fecfd7a
ADD create indexes for credential and association tables
Apr 4, 2025
01ab6bc
MOD rename field 'u_date' to 'update_date' in SCHEMA_FIELDS
Apr 4, 2025
71118d3
MOD rename 'u_date' to 'update_date'
Apr 4, 2025
8803b97
add id on agent execution response and bulk delete feature
Apr 4, 2025
dcf2ab4
add agent_id on agent execution response
Apr 4, 2025
97d1882
Merge branch 'refs/heads/white/dev' into tkt_white_7895_agents_category
Apr 7, 2025
e9df13c
fix migration
Apr 7, 2025
196e376
add parameters data to response
Apr 7, 2025
4519486
ADD test for bulk create on service
Apr 7, 2025
28feea1
remove changelog
Apr 7, 2025
e6a54c1
FIX changelog and migration
Apr 7, 2025
e77c6b7
Merge branch 'tkt_white_7911_credential_model' into tkt_white_7912_cr…
Apr 7, 2025
1abf4e2
Fix tests
Apr 8, 2025
a0543fc
Fix tests
Apr 8, 2025
ea9b3ab
Merge branch 'tkt_white_7903_vuln_status_on_import' into 'white/dev'
Apr 8, 2025
aff8e2e
Merge branch 'tkt_white_7907_analytics_bulk_delete' into 'white/dev'
Apr 8, 2025
aba9d52
MOD credential model and migrations
Apr 8, 2025
a432d67
Merge branch 'tkt_white_7911_credential_model' into tkt_white_7912_cr…
Apr 8, 2025
05ccfb1
Merge branch 'white/dev' into tkt_white_7911_credential_model
Apr 8, 2025
cf59ee8
MOD update down_revision
Apr 8, 2025
2459f3d
MOD fix json formatting
Apr 8, 2025
00bf3b5
Merge remote-tracking branch 'origin/white/dev' into tkt_white_7911_c…
Apr 8, 2025
bf9bfc8
Merge branch 'white/dev' into tkt_white_7911_credential_model
Apr 8, 2025
2ed6a72
MOD update down_revision
Apr 8, 2025
bb0c564
FIX use HTTPStatus codes
Apr 8, 2025
ffc5496
MOD improve credential import
Apr 8, 2025
d13fa0b
Merge branch 'tkt_white_7911_credential_model' into tkt_white_7912_cr…
Apr 8, 2025
bff4eda
Modify changelog
Apr 9, 2025
ce8736f
FIX credentials csv export test
Apr 9, 2025
41c030e
ADD test csv
Apr 9, 2025
3f40c77
MOD revert changes in csv import
Apr 9, 2025
96fccbe
FIX integrity check on import csv
Apr 9, 2025
32d91e0
MOD add pagination to credentials
Apr 9, 2025
05bac51
ADD leak_date to credentials export
Apr 9, 2025
3104f04
ADD test for leak_date export
Apr 9, 2025
b364fff
FIX bulk update credentials
Apr 10, 2025
e28cd91
ADD support for vuln ids in credential import
Apr 10, 2025
0c51ff4
Add architecture diagram file
Apr 11, 2025
ea2467d
Modify order and remove component
Apr 11, 2025
9992776
Modify api
Apr 11, 2025
aeb7bf5
MOD handle vuln_ids input in import csv as string
Apr 11, 2025
0241941
FIX test for import csv
Apr 11, 2025
540c72a
FIX count total
Apr 11, 2025
e1b9ed7
ADD leak_date to test csv
Apr 11, 2025
4711e77
Merge branch 'tkt_white_7642_add_architecture_diagram' into 'white/dev'
Apr 14, 2025
ab5e6cc
Fix revert config changes
Apr 14, 2025
2224ced
Merge branch 'tkt_white_7876_idle_session_log_out' into 'white/dev'
Apr 14, 2025
3e1563e
FIX merge error
Apr 14, 2025
3ad020a
MOD update downgrade logic
Apr 14, 2025
247e375
Merge branch 'tkt_white_7911_credential_model' of gitlab.com:faradays…
Apr 14, 2025
2ee4b8b
Merge branch 'tkt_white_7911_credential_model' into tkt_white_7912_cr…
Apr 14, 2025
288ede4
ADD test for web vuln
Apr 14, 2025
1d8e992
FIX relation of cred/vuln
Apr 14, 2025
3e2f024
Merge branch 'tkt_white_7911_credential_model' into tkt_white_7912_cr…
Apr 14, 2025
cdddf5e
Merge branch 'white/dev' into tkt_white_7893_filter_by_columns_csv_ex…
Apr 15, 2025
1b38cbc
update stats with no debouncer when uploading report
Apr 15, 2025
78be5dc
Merge branch 'tkt_white_7911_credential_model' into 'white/dev'
Apr 15, 2025
b86b96c
DEL credentials field from vulns
Apr 15, 2025
ab8a600
MOD skip test for vuln creds patching
Apr 15, 2025
8f12e4b
end date command update on finish process report task
Apr 15, 2025
d038389
print to log
Apr 15, 2025
5cfad41
erase variables
Apr 15, 2025
d881fdc
MOD remove credentials from host and service data
Apr 16, 2025
7e9dfcf
MOD handle missing leak_date
Apr 16, 2025
825a18d
Fix empty leak_date
Apr 16, 2025
9d578e2
Add leak date empty test
Apr 16, 2025
a329174
Add validate username and password
Apr 16, 2025
546d00b
Add skipped credentials counter
Apr 16, 2025
a699931
dont allow blank column
Apr 16, 2025
cef64d3
Fix schema validation of username and password
Apr 16, 2025
e8900ac
Add skipped credentials count
Apr 16, 2025
b959dd9
add changelog
Apr 21, 2025
710c1cb
Fix workspace check on credential relation
Apr 21, 2025
8436d0b
Add joinedload
Apr 21, 2025
aed6f82
refactor update host stats
Apr 21, 2025
a8d302f
Improve post bulk update
Apr 21, 2025
7242f67
fix for loop tabs
Apr 21, 2025
2d25952
Fix vulnerabilities workspace check
Apr 21, 2025
6dc5545
Fix randomly failing test
Apr 21, 2025
60be9b3
Merge branch 'tkt_white_7912_credentials_api' into 'white/dev'
Apr 21, 2025
73922c3
Merge remote-tracking branch 'refs/remotes/origin/white/dev' into tkt…
Apr 21, 2025
8f9b34c
Merge branch 'tkt_white_7937_calculate_report_stats_atm' into 'white/…
Apr 21, 2025
a2c9016
Fix marshmallow version in requirements.txt
Apr 22, 2025
a15d79c
Merge branch 'refs/heads/white/dev' into white/staging
Apr 22, 2025
b0ace22
sync hosts stats now updates workspace stats
Apr 22, 2025
af66ae3
add comment
Apr 22, 2025
b41c33d
add changelog
Apr 22, 2025
6cdf236
fix changelog
Apr 22, 2025
bfb0098
Merge branch 'tkt_white_7943_dont_update_stats_on_migration' into 'wh…
Apr 22, 2025
05b152e
Merge branch 'refs/heads/white/dev' into white/staging
Apr 23, 2025
b243df9
Run pynixify and update swagger
Apr 24, 2025
ca5da6e
Ready for release 5.13.0
Apr 24, 2025
00c6bec
Merge branch 'refs/heads/white/dev' into white/staging
Apr 24, 2025
e317284
Merge branch 'refs/heads/white/staging' into white/master
Apr 24, 2025
fc2a3ee
Merge branch 'refs/heads/white/dev' into tkt_white_7895_agents_category
Apr 28, 2025
eb9022d
fix migrations
Apr 28, 2025
dcb176b
Merge branch 'tkt_white_7670_filter_by_columns' into 'white/dev'
Apr 29, 2025
096f8e6
Merge branch 'white/dev' of gitlab.com:faradaysec/faraday into tkt_wh…
Apr 29, 2025
5790e91
Improve logic in vulns send_file
Apr 29, 2025
778ada5
Merge branch 'tkt_white_7893_filter_by_columns_csv_export' into 'whit…
Apr 30, 2025
969b320
Sync model and migration
May 7, 2025
7e50310
Update code with agent changes
May 8, 2025
a2884d3
Update agent_schedule run agent
May 9, 2025
fbafba4
Modify checks before start
May 12, 2025
e693b6c
Fix flake8 errors
May 12, 2025
7550997
Modify changelog
May 12, 2025
38356f9
Remove filter envelope_list from base
May 12, 2025
1586aaf
Add envelope_list in agent_execution
May 12, 2025
f266f2b
Merge branch 'white/dev' into tkt_white_7895_agents_category
May 13, 2025
c947df8
Add envelope_list in agents
May 13, 2025
dad2ec5
Add docstring
May 13, 2025
2d9fe67
Modify docstring
May 13, 2025
af122ba
Remove duplicated log and move last_run update.
May 13, 2025
c75d28e
Merge branch 'tkt_white_7895_agents_category' into 'white/dev'
May 13, 2025
fcbf589
Merge branch 'white/dev' into white/staging
May 14, 2025
c7faad6
Change versions
May 19, 2025
e670c43
Fix parameter-types version
May 19, 2025
947aab4
Run pynixify
May 19, 2025
9f7ace8
Ready for release 5.14.0
May 19, 2025
bdf6623
Merge branch 'white/dev' into white/staging
May 19, 2025
717d813
Merge branch 'white/staging' into white/master
May 19, 2025
847dfe5
Fix csv export memory issue
Jun 3, 2025
29ba576
Fix duplicates on port 0
Jun 4, 2025
572f8a7
Edit 7983.json
Jun 4, 2025
78d2725
Merge branch 'tkt_white_7981_fix_memory_issue_csv_limited_staging' in…
Jun 4, 2025
a592634
Merge branch 'tkt_white_7983_fix_bulk_create_port_0_staging' into 'wh…
Jun 4, 2025
5bf0067
Ready for release 5.14.1
Jun 4, 2025
35b5095
Merge branch 'white/staging' into white/master
Jun 4, 2025
6b0ec11
Front Updated
Jun 4, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
19 changes: 19 additions & 0 deletions .github/ISSUE_TEMPLATE/feature-request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
name: Feature request
about: Suggest an idea for this

---

**What's the problem this feature will solve?**
<!-- What are you trying to do, that you are unable to achieve with faraday as it currently stands? -->

**Describe the solution you'd like**
<!-- Clear and concise description of what you want to happen. -->

<!-- Provide examples of real world use cases that this would enable and how it solves the problem described above. -->

**Alternative Solutions**
<!-- different approach to solving this issue? Please elaborate here. -->

**Additional context**
<!-- Add any other context, links, etc. about the feature here. -->
66 changes: 66 additions & 0 deletions .github/ISSUE_TEMPLATE/issue_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
---
name: Bug report
about: Create a report an issue

---

Please search the [Wiki](https://github.com/infobyte/faraday/wiki) for a solution before posting a ticket. Use the <strong>“New Support Request”</strong> button to the right of the screen to submit a ticket for technical support.

## Issue Type
- Bug Re port
- Feature Idea
- Documentation Report


## Faraday version

Paste the output of the *./faraday.py --version* command

## Component Name

If you know where the problem lays indicate it:
WebGui/GTKGui/Plugin/Console/Continuous Scanning/Etc.

## Steps to reproduce

Provide detailed steps on how the issue happened so we can try to reproduce it. If the issue is random, please provide as much information as possible.

## Expected results

What did you expect to happen when following the steps above?

### Debugging tracebacks (current results)

Try to reproduce the bug with the server and/or gtk client in debug mode and check the logs for the ERROR string.
Add here any errors you find while running in debug mode or, if possible, Faraday’s log files (located at *$HOME/.faraday/logs/*).

If you need help on how to execute in debug mode [click here for more information](https://github.com/infobyte/faraday/wiki/troubleshooting).

Please attach the result of:

pip freeze > requirements_freeze.txt

### Screenshots

If you don't find anything on the logs, please provide screenshots of the error.

## Environment information

### Configuration files

Mention any settings you have changed/added/removed.

### Reports/Extra data

If you are having issues with plugins, please attach relevant files if possible.
(strip your reports of all sensitive information beforehand).

### OS

Provide information on your operating system. Example:

$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.10
DISTRIB_CODENAME=yakkety
DISTRIB_DESCRIPTION="Ubuntu 16.10"
29 changes: 28 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
*.egg-info
dist
build
.eggs
eggs
parts
var
Expand All @@ -25,6 +26,8 @@ pip-log.txt
.coverage
.tox
nosetests.xml
tests/.cache/
tests/htmlcov/

# Translations
*.mo
Expand Down Expand Up @@ -59,4 +62,28 @@ jsconfig.json
.idea

# vFeed DB
data/vfeed.db
data/vfeed.db

# Images based on DB Schema
entity_dbschema.png
uml_schema.png

# Documentation builds
doc/_build/
scripts/searcher/log/searcher.log
stream.svg
scripts/searcher/output/searcher.db
.pytest_cache
reports/executive/outputs/scope.docx

# Editable install hoook
_install
faraday_plugins/
faraday/frontend/
.cache

## OSX files
.DS_Store

# nix build
result
69 changes: 69 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
variables:
TZ: "America/New_York"
# Configure postgres service (https://hub.docker.com/_/postgres/)
POSTGRES_DB: custom_db
POSTGRES_USER: custom_user
POSTGRES_PASSWORD: custom_pass
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
APT_CACHE_DIR: "$CI_PROJECT_DIR/apt-cache"
DEBIAN_FRONTEND: noninteractive
IMAGE_TAG: 'egrep -o "[0-9]\.([0-9]|[0-9][0-9])(\.[0-9])?" faraday/__init__.py'
AWS_FRONT_BRANCH: 'community/dev'
VAULT_SERVER_URL: https://tluav-lb.faradaysec.com
VAULT_AUTH_ROLE: faraday-env-readonly
VAULT_AUTH_PATH: jwt
FOLDER: master

workflow:
rules:
- if: $CI_MERGE_REQUEST_ID
when: never
- when: always

cache:
paths:
- "$CI_PROJECT_DIR/.cache/pip"
- "$CI_PROJECT_DIR/apt-cache"

before_script:
- mkdir -pv $APT_CACHE_DIR

include:
- local: .gitlab/ci/get-secrets.yml
- local: .gitlab/ci/.rules-conditions.yml

- local: .gitlab/ci/testing/.pretesting-gitlab-ci.yml
- local: .gitlab/ci/testing/.nix-testing-gitlab-ci.yml
- local: .gitlab/ci/testing/.venv-testing-gitlab-ci.yml
- local: .gitlab/ci/testing/.hypothesis-nix-gitlab-ci.yml
# - local: .gitlab/ci/testing/.posttesting-gitlab-ci.yml

- local: .gitlab/ci/build-ci/.prebuild-gitlab-ci.yml
- local: .gitlab/ci/build-ci/.build-gitlab-ci.yml
- local: .gitlab/ci/build-ci/.testing-gitlab-ci.yml

- local: .gitlab/ci/upload/.storage-gitlab-ci.yml

- local: .gitlab/ci/deploy/deploy-gitlab-ci.yml

- local: .gitlab/ci/publish/.set-tag-gitlab-ci.yml
- local: .gitlab/ci/publish/.mirror-to-github-gitlab-ci.yml
- local: .gitlab/ci/publish/.docker-publish-gitlab-ci.yml

- template: Security/Secret-Detection.gitlab-ci.yml

stages:
- pre_testing
- test
# - post_testing
- pre_build
- build
- build_testing
- upload
- upload_testing
- deploy
- publish

services:
- postgres:latest
- redis:latest
67 changes: 67 additions & 0 deletions .gitlab/ci/.rules-conditions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
# When should run
.dev-staging-master:
rules:
- if: '$CI_COMMIT_REF_NAME =~ /^.*\/(master|staging|dev)$/'
when: on_success

.on-master-staging:
rules:
- if: '$CI_COMMIT_REF_NAME =~ /^.*\/(master|staging)$/'
when: on_success

.on-staging:
rules:
- if: '$CI_COMMIT_REF_NAME =~ /^.*\/(staging)$/'
when: on_success

.on-master:
rules:
- if: '$CI_COMMIT_REF_NAME =~ /^.*\/(master)$/'
when: on_success

.on-community-tag:
rules:
- if: '$CI_COMMIT_TAG =~ /^white-v[0-9.]+$/'
when: on_success

.pipeline-control-test:
rules:
- if: $FULL_TEST || $DAILY_TEST
when: on_success

.be-built:
rules:
- if: '$CI_COMMIT_TAG || $BUILD_TEST || $FULL_TEST || $DAILY_TEST'
when: on_success

.be-uploaded:
rules:
- if: '$BUILD_TEST || $FULL_TEST || $DAILY_TEST'
when: on_success


# Ignore
.ignore-on-tag:
rules:
- if: '$CI_COMMIT_TAG'
when: never

.ignore-on-master:
rules:
- if: '$CI_COMMIT_REF_NAME =~ /^.*\/(master)$/'
when: never

.ignore-on-staging:
rules:
- if: '$CI_COMMIT_REF_NAME =~ /^.*\/(staging)$/'
when: never

.ignore-on-build:
rules:
- if: $BUILD_TEST
when: never

.update_docker:
rules:
- if: $UPDATE_DOCKER_TEST
when: on_success
Loading
0