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

New release - Alpha 3.0 - 0.9.0 #1671

Merged
merged 574 commits into from
Dec 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
574 commits
Select commit Hold shift + click to select a range
793aee2
format cli
morganpartee Nov 28, 2023
1e0abb2
transform command now uses python_transforms in .infrahub.yml + refac…
wvandeun Nov 30, 2023
48e4eaa
adds doc for infrahubctl transform command
wvandeun Nov 30, 2023
b2c223b
fixes
wvandeun Nov 30, 2023
feda728
Merge pull request #1533 from opsmill/render-transforms
wvandeun Dec 1, 2023
05c32f5
Merge pull request #1542 from opsmill/pog-services-cleanup
ogenstad Dec 1, 2023
711d8a2
Merge pull request #1531 from opsmill/pog-mutate-enums
ogenstad Dec 1, 2023
26c3287
upgrade select component to handle dropdown input
pa-lem Dec 1, 2023
5f27191
Remove pylint ignore statements and __main__
ogenstad Dec 1, 2023
f80e21b
Merge pull request #1557 from opsmill/pog-ctl-minor-cleanup
ogenstad Dec 1, 2023
3c978f8
Fix ability to run checks from infrahubctl
ogenstad Dec 1, 2023
0495f40
Fix typo
ogenstad Dec 1, 2023
a4c0c67
add more colors for the dropdown
pa-lem Dec 1, 2023
3a96093
fix on change for dropdown
pa-lem Dec 1, 2023
c444f24
add handlebars utils
pa-lem Dec 1, 2023
956c6f5
fix queries to get color and description for dropdown
pa-lem Dec 1, 2023
ecd7da8
Merge pull request #1558 from opsmill/pog-ctl-checks
ogenstad Dec 1, 2023
bff5269
update item display value to use the color and description from the d…
pa-lem Dec 1, 2023
c2e97a8
update paddings
pa-lem Dec 1, 2023
39c378d
fix select initial value for dropdown
pa-lem Dec 1, 2023
d5383db
fix handlebars utils import
pa-lem Dec 1, 2023
2c71138
fix relationships options default value
pa-lem Dec 1, 2023
0155bbb
Add namespace information to schema API
ogenstad Dec 1, 2023
1277263
Refactor initialization of RabbitMQ on API server
ogenstad Dec 2, 2023
42b6641
Merge pull request #1544 from opsmill/bab-1537-duplicate-comments
bilalabbad Dec 3, 2023
84d0075
Move out override from SETTINGS
ogenstad Dec 3, 2023
f26ed42
rollback debug for save, _create and _update
BeArchiTek Dec 4, 2023
e5d60f6
Replacing Tuple by Typedict
BeArchiTek Dec 4, 2023
934f0d4
Merge pull request #1564 from opsmill/pog-message-bus
ogenstad Dec 4, 2023
e05d9c4
Add a safer way for response[schema_kind]['edges']
BeArchiTek Dec 4, 2023
7a3ba7b
remove description from value in views
pa-lem Dec 4, 2023
106b51f
update colors
pa-lem Dec 4, 2023
8290023
update backend test with new color
pa-lem Dec 4, 2023
572c01b
Merge pull request #1507 from opsmill/20231123-bkr-sdk-fetch-relation…
BeArchiTek Dec 4, 2023
791359d
Add support for Directional Relationship (#1517)
dgarros Dec 4, 2023
6d1b1b8
:wrench:
pa-lem Dec 4, 2023
bb6a80e
fix import error in select.tsx
bilalabbad Dec 4, 2023
0c59d40
Merge pull request #1561 from opsmill/ple-dropdown
pa-lem Dec 4, 2023
b408c7f
update nautobot sync
BeArchiTek Dec 5, 2023
98c5480
fix issue in SDK when UUID was not properly used
BeArchiTek Dec 5, 2023
fcb5868
Merge pull request #1569 from opsmill/20231205-fix-sdk
BeArchiTek Dec 5, 2023
c73e066
docs(fix): update build and serve tasks (#1574)
markmichon Dec 6, 2023
67a7eb9
docs: add docs guide (#1491)
markmichon Dec 7, 2023
82b9e33
chore: update infrahub-sdk version from 0.2.1 to 0.3.0 (#1571)
BeArchiTek Dec 11, 2023
5b7652e
Merge pull request #1562 from opsmill/pog-schema-namespace-info
ogenstad Dec 11, 2023
af137b4
adds multi value filters to core engine
wvandeun Dec 11, 2023
166bfee
add core engine multi value filters tests
wvandeun Dec 11, 2023
01ccdb7
bump timeout of `backend-tests-neo4j` ci job to 45 min
wvandeun Dec 11, 2023
4304e7f
Merge pull request #1560 from opsmill/wvd-extend-core-query-with-filt…
wvandeun Dec 11, 2023
567b10a
Refactor scheduling service
ogenstad Dec 7, 2023
32a2eec
Add task to post request to sync repositories
ogenstad Dec 7, 2023
3cd6aad
Add tests, change to debug logging and add description
ogenstad Dec 11, 2023
776d3f4
Expand return types for IPHost and IPNetwork
BeArchiTek Dec 11, 2023
24e8e0a
cleanup
BeArchiTek Dec 11, 2023
3991678
format + lint
BeArchiTek Dec 11, 2023
d8c26e5
Add mutations to add & remove Dropdown choices
ogenstad Dec 4, 2023
b091b8c
Remove extra color statement
ogenstad Dec 11, 2023
eab9367
Merge pull request #1575 from opsmill/pog-refactor-schema
ogenstad Dec 11, 2023
0ea104d
forgot import IPNetworkType
BeArchiTek Dec 11, 2023
d889a60
Add message to sync repositories and change schedule of git agent
ogenstad Dec 11, 2023
eb73de6
Merge pull request #1572 from opsmill/pog-mutate-dropdown
ogenstad Dec 11, 2023
152c6e0
remove mdxeditor and use Form in add-comment.tsx
bilalabbad Dec 4, 2023
6526526
added component MarkdownViewer
bilalabbad Dec 4, 2023
6f92433
added minimal CodeMirror
bilalabbad Dec 4, 2023
f7271de
replaced textaera with TextareaWithEditor
bilalabbad Dec 4, 2023
694ae60
Added onChange on MarkdownEditor
bilalabbad Dec 4, 2023
2f574f2
removed default outline
bilalabbad Dec 4, 2023
bfe79f4
added support Markdown land to CodeMirror
bilalabbad Dec 4, 2023
f818049
added keymap on CodeMirror to improve UX
bilalabbad Dec 4, 2023
9d3774d
added preview in MarkdownEditor
bilalabbad Dec 4, 2023
5fe4778
extract in MarkdownEditor header in a new component
bilalabbad Dec 4, 2023
c13eab6
expose codeMirror ref
bilalabbad Dec 4, 2023
d167e62
Add toolbar with bold, italic, striketrough
bilalabbad Dec 4, 2023
35dddc6
handle disabled editor
bilalabbad Dec 4, 2023
0af91a6
fix ts warning
bilalabbad Dec 4, 2023
f1bf00b
cleaning not use forwardRef
bilalabbad Dec 4, 2023
ab3da95
made code in MarkdownEditor more explicit
bilalabbad Dec 4, 2023
4da97c2
added custom placeholder on textareaWithEditor
bilalabbad Dec 4, 2023
21e779c
fix test
bilalabbad Dec 4, 2023
138eb73
Improved style of markdown editor
bilalabbad Dec 11, 2023
02ee6dc
added markdown syntax hightlight in editor
bilalabbad Dec 11, 2023
34c6f70
styled MarkdownEditor on focus
bilalabbad Dec 11, 2023
907cd86
added hooks useCodeMirror
bilalabbad Dec 11, 2023
800801d
add autofocus on mount
bilalabbad Dec 11, 2023
3c3ed21
add undo/redo to markdown editor
bilalabbad Dec 11, 2023
30f81c2
Update types.py
BeArchiTek Dec 11, 2023
ef515c2
Improve editor button behavior
bilalabbad Dec 11, 2023
842895f
added red color on textarea when error in form
bilalabbad Dec 11, 2023
4097075
fix test + some cleaning
bilalabbad Dec 11, 2023
5929ecd
Merge pull request #1565 from opsmill/bab-1085-all-textarea-have-editor
bilalabbad Dec 12, 2023
889627e
Merge pull request #1599 from opsmill/pog-single-git-refresh
ogenstad Dec 12, 2023
5989553
Fix flaky E2E test tutorial-1
bilalabbad Dec 12, 2023
914b9b2
Nautobot v2 working, split config in 2 with v1 config file
BeArchiTek Dec 12, 2023
4ceaafe
rework nautobot schema to add namespace
BeArchiTek Dec 12, 2023
edd5089
update cypress to latest
bilalabbad Dec 12, 2023
7270526
rework nautobot v1 schema
BeArchiTek Dec 12, 2023
2dd2148
Merge remote-tracking branch 'origin/develop' into 20231129-bkr-nauto…
BeArchiTek Dec 12, 2023
7540864
workaround to prevent cy.type() bug on tutorial 1 e2e test
bilalabbad Dec 12, 2023
b660f30
Merge pull request #1606 from opsmill/bab-fix-test-tutorial-1
bilalabbad Dec 12, 2023
0b2618f
add check for empty value in case of optional relationships
BeArchiTek Dec 12, 2023
18bc111
update jotai to latest (2.6.0)
bilalabbad Dec 12, 2023
09286ac
Merge pull request #1608 from opsmill/bab-update-jotai
bilalabbad Dec 12, 2023
8407501
removed unused atom genericSchemaState
bilalabbad Nov 30, 2023
4508536
type fetchSchema
bilalabbad Nov 30, 2023
b48d5bc
prevent duplicate schema fetch when branch is selected
bilalabbad Nov 30, 2023
94830cd
update nextbox schema and split nautobot in v1/v2 for now
BeArchiTek Dec 12, 2023
fb3164b
last change following the local lab in nautobot 1.6.2
BeArchiTek Dec 12, 2023
b06d237
adding tqdm for progress bar in sync for something more visual withou…
BeArchiTek Dec 12, 2023
1343f9c
format + lint
BeArchiTek Dec 12, 2023
5acf245
Add show_progress option to control the progress bar visibility durin…
BeArchiTek Dec 13, 2023
0982708
Cleanup v1 of models present only in v2 + change some relations in v2
BeArchiTek Dec 13, 2023
795868d
Merge pull request #1549 from opsmill/bab-1382-optimize-jotai
bilalabbad Dec 13, 2023
0232c9f
cleanup wrong relation identifiers, and changing order interfacel2l3…
BeArchiTek Dec 13, 2023
ac71732
Add targeted checks for infrahubctl and enforce name
ogenstad Dec 13, 2023
c1f32eb
format + lint
BeArchiTek Dec 13, 2023
3777605
Merge pull request #1614 from opsmill/pog-targeted-checks
ogenstad Dec 13, 2023
53ef2bd
Modify Python transforms to require a name in .infrahub.yml
ogenstad Dec 13, 2023
4dcb22b
Move color selection to schema process()
ogenstad Dec 12, 2023
4392e10
Add formatter for labels
ogenstad Dec 13, 2023
b65b9cf
Merge pull request #1607 from opsmill/pog-dropdown-process
ogenstad Dec 14, 2023
1d96af0
Merge pull request #1616 from opsmill/pog-transform-work
ogenstad Dec 14, 2023
319e065
Update attribute.py
BeArchiTek Dec 14, 2023
cf857bb
Merge pull request #1598 from opsmill/20231211-bkr-extend-ip-types
BeArchiTek Dec 14, 2023
5f81a8f
Update InfraRack schema to use Dropdown for status and role (#1602)
dgarros Dec 14, 2023
046b961
add currentBranch atom
bilalabbad Dec 14, 2023
309ef7e
replaced branchVar with currentBranchAtom
bilalabbad Dec 14, 2023
405d025
eliminated duplicate menu fetch on first load
bilalabbad Dec 14, 2023
2cecc83
rework base schema + edge script to use dropdown
BeArchiTek Dec 14, 2023
3996fb9
Merge remote-tracking branch 'origin/develop' into 20231213-bkr-use-d…
BeArchiTek Dec 14, 2023
01528af
last touch
BeArchiTek Dec 14, 2023
94ab676
changing status on one core router to see more color in demo
BeArchiTek Dec 14, 2023
82c9eca
fix test
bilalabbad Dec 14, 2023
3c1f4ce
change role__name__value, to role__value, as we use the dropdown in b…
BeArchiTek Dec 14, 2023
c8403a1
replace any__value by role__value
BeArchiTek Dec 14, 2023
28d865d
Fix broken headers in reference
ogenstad Dec 14, 2023
aec816c
restore owner and source + add a couple of role in schema for dataset…
BeArchiTek Dec 14, 2023
13948a3
update dataset01 and dataset03 for backend tests
BeArchiTek Dec 14, 2023
5da222c
Merge pull request #1618 from opsmill/bab-atom-current-branch
bilalabbad Dec 14, 2023
e7e2746
fix margin for badges
pa-lem Dec 14, 2023
3c87aad
get namespaces
pa-lem Dec 14, 2023
11132f9
:wrench:
pa-lem Dec 14, 2023
b64e0e9
add leaf to interface role for integration tests
BeArchiTek Dec 14, 2023
75cbb48
update INTERFACE_CREATE mutation
BeArchiTek Dec 14, 2023
bbb7888
update check_backbone_link_redundancy query
BeArchiTek Dec 14, 2023
3086b11
Docs: Add howto guide for Python transforms
ogenstad Dec 14, 2023
8b636ef
Merge pull request #1621 from opsmill/pog-reference-headers
ogenstad Dec 15, 2023
c19d534
added current Schema Hash atom
bilalabbad Dec 15, 2023
9a2bd5f
added api url for schema summary on frontend
bilalabbad Dec 15, 2023
aa94c8a
extract sortByName out of component to prevent redeclaration
bilalabbad Dec 15, 2023
2b8d33f
remove useCallback around fetchSchema in App.tsx
bilalabbad Dec 15, 2023
c7947d8
merged fetchSchema and setSchemaInState into fetchAndSetSchema
bilalabbad Dec 15, 2023
28d2305
set value of currentSchemaHash atom on first load
bilalabbad Dec 15, 2023
b71ccb5
:wrench:
pa-lem Dec 15, 2023
685a642
Disable test_artifact_definition_endpoint (#1628)
dgarros Dec 15, 2023
bbd4f18
fetch schema only when hash changes
bilalabbad Dec 15, 2023
ed278d5
update infrahub_sdk installation instructions in docs
wvandeun Dec 15, 2023
4224d1c
adds PyPI to vale spelling exceptions
wvandeun Dec 15, 2023
cf5e1d4
Merge pull request #1617 from opsmill/wvd_docs_update_sdk_installatio…
wvandeun Dec 15, 2023
f6b23b0
fix form reset on submit
pa-lem Dec 15, 2023
f02964e
:wrench:
pa-lem Dec 15, 2023
1a9a069
fix test
bilalabbad Dec 15, 2023
f6d8e9f
fix test 2
bilalabbad Dec 15, 2023
0e22c4f
renamed data to schemaData
bilalabbad Dec 15, 2023
ec2db56
final cleaning
bilalabbad Dec 15, 2023
000d21d
Add priorities to messages within RabbitMQ
ogenstad Dec 15, 2023
529ecf9
Merge pull request #1622 from opsmill/bab-optimize-schema-fetch-hash
bilalabbad Dec 15, 2023
0793fb7
Update memgraph to 2.13 (#1630)
dgarros Dec 15, 2023
edf8ecb
update select to add and remove options (dropdown + enum)
pa-lem Dec 15, 2023
a23e406
Merge branch 'develop' of github.com:opsmill/infrahub into ple-choice…
pa-lem Dec 15, 2023
9d6275b
:wrench:
pa-lem Dec 15, 2023
f6260c9
fix unit test to check contained value
pa-lem Dec 15, 2023
d352832
updates the trash icon in the list view for consistency + fix alignment
pa-lem Dec 15, 2023
665525b
adds fastapi_storages dependency
wvandeun Dec 15, 2023
8a3fe02
refactors storage engine to leverage fastapi_storages
wvandeun Dec 15, 2023
49cb12c
adapt tests to storage engine refactor to leverage fastapi_storages
wvandeun Dec 15, 2023
9b08e64
Merge pull request #1613 from opsmill/wvd_refactor_storage_engine
wvandeun Dec 15, 2023
0b1b3ae
Remove pynetbox, pynautobot & dagster (#1634)
dgarros Dec 16, 2023
861f9bd
Update Neo4j to 5.14 (#1629)
dgarros Dec 16, 2023
83ecd84
Remove diffsync (#1639)
dgarros Dec 16, 2023
753443b
Move Status, Role, Criticality and Organization out of the core schem…
dgarros Dec 12, 2023
48c7634
Remove Builtin from the restricted namespaces for now
dgarros Dec 12, 2023
4b2edc4
Update infra_simple_01 to use dropdown instead of BuiltinStatus & Role
dgarros Dec 12, 2023
498d2b2
Fix remaining unit tests
dgarros Dec 15, 2023
a81f8de
Remove dropdown from infra_w_generic_01 pending #1631
dgarros Dec 15, 2023
d250be3
Remove Dropdown from infra_simple_01 for now
dgarros Dec 16, 2023
5dbaf2f
Fix issue in SDK where resp could be none
dgarros Dec 16, 2023
e867ad1
Update SDK interation tests to work with the latest schema
dgarros Dec 16, 2023
142b1cc
Remove locust and set ruff to 0.1.8 (#1641)
dgarros Dec 16, 2023
3775e89
Rework priority assignments
ogenstad Dec 18, 2023
1a7de63
margin updates
pa-lem Dec 18, 2023
a636dca
Add feedback
ogenstad Dec 18, 2023
6150c11
Merge branch 'develop' into 20231129-bkr-nautobot-sync
BeArchiTek Dec 18, 2023
ceca1a1
Merge pull request #1632 from opsmill/pog-rabbitmq-priority-queues
ogenstad Dec 18, 2023
ab6f06f
update select options checks in tests
pa-lem Dec 18, 2023
5d5560b
Merge pull request #1626 from opsmill/pog-transform-docs
ogenstad Dec 18, 2023
84f07c1
Merge remote-tracking branch 'origin/develop' into 20231129-bkr-nauto…
BeArchiTek Dec 18, 2023
40b5c6f
resolved conflict
BeArchiTek Dec 18, 2023
6bbe312
Minor upgrades of dependencies in pyproject.toml (#1642)
dgarros Dec 18, 2023
4f7d901
Create a dedicated python package for infrahub-sync (#1640)
dgarros Dec 18, 2023
b0b06d7
update fixture for dropdown status/role change
BeArchiTek Dec 18, 2023
36b3ede
update openapi-typescript@latest
bilalabbad Dec 18, 2023
d5f50a7
another one
BeArchiTek Dec 18, 2023
e63cebf
Updated TS Type from Open api doc
bilalabbad Dec 18, 2023
0da5c0e
prevent empty option
pa-lem Dec 18, 2023
7384d52
Merge pull request #1552 from opsmill/20231129-bkr-nautobot-sync
BeArchiTek Dec 18, 2023
4e78128
Updated schema type to match open api
bilalabbad Dec 18, 2023
5108c7f
Merge remote-tracking branch 'origin/develop' into 20231213-bkr-use-d…
BeArchiTek Dec 18, 2023
2bff7cd
fix empty option in test
pa-lem Dec 18, 2023
d0a4c9d
ruff check --fix
BeArchiTek Dec 18, 2023
61a90bc
Merge pull request #1650 from opsmill/bab-update-openapi-ts
bilalabbad Dec 18, 2023
9dd98de
fix select options style for test
pa-lem Dec 18, 2023
c7c061e
:wrench:
pa-lem Dec 18, 2023
61523c7
extract docker image meta data CI step from ci-docker-image workflow
wvandeun Dec 18, 2023
e656561
updates push event trigger for CI release workflow
wvandeun Dec 18, 2023
3ede882
add manual development docker image build and push CI workflow
wvandeun Dec 18, 2023
9c461aa
add scheduled development docker image build and push CI workflow
wvandeun Dec 18, 2023
110fa41
removes commented criticality node from infrastructure base
wvandeun Dec 18, 2023
290844c
Merge pull request #1635 from opsmill/ple-choices-update
pa-lem Dec 18, 2023
96e16e9
Merge remote-tracking branch 'origin/develop' into 20231213-bkr-use-d…
BeArchiTek Dec 18, 2023
ed7958a
Upsert mutations (#1611)
ajtmccarty Dec 18, 2023
256f49d
lint the sync/ dir (#1652)
ajtmccarty Dec 18, 2023
0e2414d
update documentation
wvandeun Dec 18, 2023
cedbc1b
fix test after group creation
pa-lem Dec 18, 2023
36b8da1
Merge pull request #1648 from opsmill/wvd-manual-docker-build-and-pus…
wvandeun Dec 18, 2023
ebd1892
Merge pull request #1603 from opsmill/dga-20231212-remove-builtin
wvandeun Dec 18, 2023
94e630e
Using Jotai for time travel date state management
bilalabbad Dec 18, 2023
34d6c41
fix thernet query after data changes
pa-lem Dec 19, 2023
966b976
fix mutation for metadata
pa-lem Dec 19, 2023
3f9f948
:pen:
pa-lem Dec 19, 2023
942064e
fix and imrpove update test
pa-lem Dec 19, 2023
9c20229
renamed timeTravelDateAtom to datetimeAtom
bilalabbad Dec 19, 2023
f807cd7
improve tuto4 test query
pa-lem Dec 19, 2023
78f768d
Merge pull request #1657 from opsmill/bab-use-reactive-date-to-atom
bilalabbad Dec 19, 2023
7a096ce
bump version number
pa-lem Dec 19, 2023
419639e
Order the list of dropdown choices in the schema manager (#1659)
dgarros Dec 19, 2023
c9ec458
Merge pull request #1619 from opsmill/20231213-bkr-use-dropdown-in-demo
BeArchiTek Dec 19, 2023
c02fec1
On initial load, wait for branches list to be fetched before display app
bilalabbad Dec 18, 2023
d8fb0f4
set current branch immediately after fetching all branches
bilalabbad Dec 19, 2023
462c50d
remove useless useCallback
bilalabbad Dec 19, 2023
bdf1574
Init schema and schema summary before rendering app
bilalabbad Dec 19, 2023
a88cd89
fetch schema only when current branch changes
bilalabbad Dec 19, 2023
f20606f
factorize in a function how to find selected branch
bilalabbad Dec 19, 2023
f7b18a0
Merge pull request #1662 from opsmill/bab-fetch-only-different-schema
bilalabbad Dec 19, 2023
0820c45
Add ability to run proposed change checks on targets
ogenstad Dec 19, 2023
1c7d97e
update screens
pa-lem Dec 19, 2023
7899caf
Merge pull request #1661 from opsmill/ple-release-alpha3
pa-lem Dec 19, 2023
8442555
remove useless screen
pa-lem Dec 19, 2023
27153bb
fix branch screenshot
pa-lem Dec 19, 2023
1aa6fb8
Merge pull request #1668 from opsmill/ple-doc-screens
pa-lem Dec 19, 2023
4a310ec
Merge pull request #1663 from opsmill/pog-user-defined
ogenstad Dec 19, 2023
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
  •  
  •  
  •  
10 changes: 8 additions & 2 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,13 +1,19 @@
*.pyc
**/*.pyc
*.env
script.py
node_modules
.venv
.ruff_cache
**/.ruff_cache
.mypy_cache
.pytest_cache
*.env

.DS_Store
.coverage
coverage.xml
.git*
.devcontainer
.husky
frontend/node_modules

# Direnv files (https://direnv.net/)
Expand Down
17 changes: 17 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# https://editorconfig.org
# Top-most EditorConfig file
root = true

[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
indent_size = 2
indent_style = space
trim_trailing_whitespace = true

[*.py]
indent_size = 4

[*.md]
trim_trailing_whitespace = false
16 changes: 16 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
# yamllint disable rule:truthy
version: 2

updates:
# Maintain dependencies for GitHub Actions
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
day: "monday"
time: "09:00"
target-branch: develop
labels:
- "type/housekeeping"
- "ci/skip-changelog"
9 changes: 9 additions & 0 deletions .github/file-filters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ frontend_files: &frontend_files
demo_files: &demo_files
- "models/**"

doc_files: &doc_files
- "docs/**"
- package.json
- package-lock.json

python_all: &python_all
- "**/*.py"

Expand All @@ -43,6 +48,10 @@ backend_all:
- *ci_config
- *development_files

documentation_all:
- *development_files
- *doc_files

sdk_all:
- *sdk_files
- *backend_files
Expand Down
2 changes: 1 addition & 1 deletion .github/labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@
description: "The redaction of the issue is still a work in progress"
color: "dcb518"

- name: "state/referenced"
- name: "state/ref"
description: "This issue is referenced in our internal tooling"
color: "c9510c"

Expand Down
2 changes: 1 addition & 1 deletion .github/release-note.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and ad
# - 'patch'
# default: patch
template: |
## Changes
## Changelog

$CHANGES
79 changes: 79 additions & 0 deletions .github/workflows/ci-docker-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
---
# yamllint disable rule:truthy
name: Build And Push Docker image

# When calling this workflow, ensure you use
# secrets: inherit

on:
workflow_call:
inputs:
publish:
type: boolean
description: Wether to publish the image to Infrahub Private Registry
required: false
default: false
version:
type: string
required: false
description: The string to extract semver labels from.
default: ''
ref:
type: string
required: true
desription: The GIT ref from which the image will be build
tags:
type: string
required: true
description: The tags for the docker image
labels:
type: string
required: true
description: The labels for the docker image

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

env:
REGISTRY_IMAGE: "${{ secrets.HARBOR_HOST }}/${{ github.repository }}"
DOCKERFILE: "development/Dockerfile"
PLATFORMS: "linux/amd64,linux/arm64"

jobs:
build:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ inputs.ref }}

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Login to Docker Hub
if: ${{ inputs.publish }}
uses: docker/login-action@v3
id: login
with:
registry: ${{ secrets.HARBOR_HOST }}
username: ${{ secrets.HARBOR_USERNAME }}
password: ${{ secrets.HARBOR_PASSWORD }}

- name: Build and push
uses: docker/build-push-action@v5
id: push
with:
context: .
file: ${{ env.DOCKERFILE }}
provenance: false # To avoid cross platform "unknown"
push: ${{ inputs.publish }}
platforms: ${{ env.PLATFORMS }}
tags: ${{ inputs.tags }}
labels: ${{ inputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
Loading
Loading