Commit graph

1655 commits

Author SHA1 Message Date
Digikwal
e15b9247d0
Delete .github/workflows/pre-commit.yml 2025-06-26 17:05:01 +02:00
Digikwal
0bc936f749
Delete .github/workflows/lint.yml 2025-06-26 17:04:53 +02:00
Digikwal
03dfac329a
ci: refactor and merge pre-commit + lint 2025-06-26 17:04:12 +02:00
Digikwal
867716dc33
ci: Auto-merge PRs from fieldmate releases
This commit introduces a GitHub Actions workflow that automatically merges pull requests created by the fieldmate release process.

What it does:
- Detects PRs from branches starting with `fieldmate-auto-release`
- Attempts to enable auto-merge via GitHub CLI
- Falls back to direct squash merge if auto-merge is not possible
- Uses consistent commit messages and descriptions

This ensures that updates to fieldmate in frappe_docker are propagated cleanly and automatically, triggering rebuilds where needed.
2025-06-26 16:39:10 +02:00
Digikwal
8b88d0e06e
feat(ci): add conventional commit type
- added fieldmate type
- use type fieldmate when merging it's PR
- new type will section fieldmate changes on docker changelogs
2025-06-26 16:12:02 +02:00
Digikwal
91a59014e2
fix: refactor workflow logic 2025-06-26 15:54:52 +02:00
Digikwal
ba692058cb
feat(ci): add release metadata logic 2025-06-26 02:10:15 +02:00
Digikwal
28cb49e958
Delete .github/workflows/on-fieldmate-release.yml 2025-06-26 01:40:44 +02:00
Digikwal
9ed7b47cc3
ci: add workflow to react on Fieldmate release
This workflow listens for repository_dispatch events of type 'fieldmate-release'.
It is intended to be triggered from the Fieldmate repository after a new version is released.

On receiving the event:
- It prints the version number from the client_payload
- Serves as an integration point for docker rebuilds, publish flows, or other automations

Use `version` in the client payload to pass the released tag, e.g. 'v0.0.2'.
2025-06-25 20:04:30 +02:00
Digikwal
3c06923c64
chore(ci): remove path 2025-06-25 19:32:56 +02:00
Digikwal
b303f8fe70
fix: handle immutable tags 2025-06-25 00:02:32 +02:00
digikwal
efd094a9a4
style: [prettier] Autoformat code via pre-commit hook 2025-06-24 23:44:41 +02:00
Digikwal
562cdbaeff
fix: remove comments to satisfy JSON linting 2025-06-24 23:42:36 +02:00
Digikwal
56303cfbae
fix: remove comments to satisfy JSON linting 2025-06-24 23:41:22 +02:00
Digikwal
23d5ed84e4
fix: remove comments from launch.json to satisfy JSON linting 2025-06-24 23:39:09 +02:00
Digikwal
4d175d549e
ci: create lint.yml 2025-06-24 22:37:11 +02:00
Digikwal
cde6bb3ce2
ci: optimize update hooks
- Cron from daily to once per week
- Pretty branch name + PR-title with date
- Python-version pinning
- Improved caching key (combines OS and Python-version)
- User pre-commit gc for cleanup
2025-06-24 22:36:02 +02:00
Digikwal
075f353328
ci: remove lint job
moving lint job to separate workflow
2025-06-24 22:16:12 +02:00
Digikwal
6cbfe06691
ci: update workflow triggersemantic-release.yml 2025-06-24 22:02:28 +02:00
Digikwal
9ce450573c
ci: Create pre-commit.yml 2025-06-24 20:09:15 +02:00
Digikwal
3df691875a
Delete .github/workflows/lint.yml 2025-06-24 20:04:19 +02:00
Digikwal
f0c32f6a67
ci: Merge workflows: Pre-commit and Lint into Semantic Release
- Combined the `Pre-commit` and `Lint` workflows under the `on.workflow_run` trigger in the Semantic Release workflow.
- Unified steps for dependency installation, testing, and release note generation.
- Added handling for `FRAPPE_BRANCH` to ensure metadata files are created and uploaded consistently.
- Reduced redundancy and improved maintainability of the workflow configuration.
2025-06-24 19:56:42 +02:00
Digikwal
2263f1396b
ci: add pre_commit_check.py 2025-06-24 19:46:45 +02:00
Digikwal
72fb041382
chore: add hooks and updated versions
- Updated versions of pre-commit hooks to ensure compatibility and improvements:
  - Upgraded `pre-commit-hooks` to v5.0.0.
  - Upgraded `black` to v25.1.0.
- Added new hooks for `pyupgrade`, `isort`, `prettier`, `codespell`, `shfmt`, and `shellcheck`.
- Ensured no duplicate hooks and maintained proper configuration for local hooks.
- Improved linting coverage for Dockerfiles, YAML files, and shell scripts.
2025-06-24 19:44:45 +02:00
Digikwal
0b396de113
ci: add yamllint 2025-06-24 19:37:50 +02:00
Digikwal
5969a73589
ci: add msg-map.json
Commit message map
2025-06-24 19:36:38 +02:00
Digikwal
55c9fe767a
ci: add package.json 2025-06-24 19:34:52 +02:00
digikwal
39833f753d
style: apply automatic lint fixes via pre-commit 2025-06-24 19:23:55 +02:00
Digikwal
acea6f0edf
fix: make script POSIX-compliant for broader shell compatibility
Refactored to use strictly POSIX-compliant syntax.

- Replaced array assignment `ARGS=("$@")` with `ARGS="$*"` for ash compatibility (e.g. Alpine)
- Removed array-specific expansions like `${ARGS[@]}`
- Preserved full functionality for Docker Compose execution
- Ensured the script passes linting tools like shfmt and shellcheck

This ensures the script runs reliably in both Alpine (ash) and Ubuntu (bash) environments.
2025-06-24 19:04:28 +02:00
Digikwal
468ca9ddeb
feat: add workflow dispatch 2025-06-24 18:53:25 +02:00
Digikwal
5275cb8695
chore(stack): fix shellcheck warnings for safe argument handling
In stack.sh line 9:
ARGS="$@"
     ^--^ SC2124 (warning): Assigning an array to a string! Assign as array, or use * instead of @ to concatenate.


In stack.sh line 36:
  "$ACTION" $ARGS
            ^---^ SC2086 (info): Double quote to prevent globbing and word splitting.

In stack.sh line 42:
  "$ACTION" $ARGS
            ^---^ SC2086 (info): Double quote to prevent globbing and word splitting.
2025-06-24 18:48:32 +02:00
Digikwal
90bcb0291a
chore(ci): trigger lint on apps.json changes 2025-06-24 18:42:59 +02:00
Digikwal
dba5650b09
chore: update workflow name 2025-06-24 18:39:26 +02:00
Digikwal
6260184d7d
chore: fix workflow path 2025-06-24 18:36:45 +02:00
Digikwal
6762f5701c
docs: add badges 2025-06-24 18:35:15 +02:00
digikwal
8b7eb9447f
ci: add semantic-release, docker build & pre-commit workflows 2025-06-24 18:28:55 +02:00
digikwal
0024e17433
Merge branch 'main' of github.com:digikwal/frappe_docker 2025-06-24 17:47:04 +02:00
digikwal
cf37a7f757
chore: update instructions 2025-06-24 17:09:57 +02:00
github-actions
4b6dbb64df chore: Update example.env 2025-06-19 17:06:12 +00:00
github-actions
514480d156 chore: Update example.env 2025-06-19 06:02:20 +00:00
github-actions
ce36b51e81 chore: Update example.env 2025-06-17 15:09:57 +00:00
github-actions
a92deb6cc5 chore: Update example.env 2025-06-11 13:23:07 +00:00
github-actions
920639956d chore: Update example.env 2025-06-10 15:04:17 +00:00
dependabot[bot]
729edc67c1
chore(deps): bump pytest from 8.3.5 to 8.4.0 (#1644)
Bumps [pytest](https://github.com/pytest-dev/pytest) from 8.3.5 to 8.4.0.
- [Release notes](https://github.com/pytest-dev/pytest/releases)
- [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst)
- [Commits](https://github.com/pytest-dev/pytest/compare/8.3.5...8.4.0)

---
updated-dependencies:
- dependency-name: pytest
  dependency-version: 8.4.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-06-09 07:53:27 +05:30
github-actions
b1f25de9c3 chore: Update example.env 2025-06-06 07:40:00 +00:00
github-actions
c187ec55a4 chore: Update example.env 2025-06-03 12:26:45 +00:00
dependabot[bot]
ebd8021730
chore(deps): bump docker/bake-action from 6.7.0 to 6.8.0 (#1641)
Bumps [docker/bake-action](https://github.com/docker/bake-action) from 6.7.0 to 6.8.0.
- [Release notes](https://github.com/docker/bake-action/releases)
- [Commits](https://github.com/docker/bake-action/compare/v6.7.0...v6.8.0)

---
updated-dependencies:
- dependency-name: docker/bake-action
  dependency-version: 6.8.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-05-29 17:33:43 +05:30
gp
31ed5daa68
chore: Update EOL NodeJS to 20.19.2 (#1638) 2025-05-29 17:33:28 +05:30
github-actions
b2c02427c9 chore: Update example.env 2025-05-27 15:46:50 +00:00
dependabot[bot]
1aeff70c96
chore(deps): bump docker/bake-action from 6.6.0 to 6.7.0 (#1633)
Bumps [docker/bake-action](https://github.com/docker/bake-action) from 6.6.0 to 6.7.0.
- [Release notes](https://github.com/docker/bake-action/releases)
- [Commits](https://github.com/docker/bake-action/compare/v6.6.0...v6.7.0)

---
updated-dependencies:
- dependency-name: docker/bake-action
  dependency-version: 6.7.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-05-23 12:50:11 +05:30