Commit graph

1682 commits

Author SHA1 Message Date
Digikwal
27d85ece69
fieldmate: Trigger rebuild after fieldmate release (#3) 2025-06-27 16:56:31 +02:00
Digikwal
cb40023e54
chore(fix): status badge trigger 2025-06-27 14:12:38 +02:00
Digikwal
a535785284
docs: Restructured 2025-06-27 14:03:48 +02:00
digikwal
9002132fc2
Merge branch 'main' of github.com:digikwal/frappe_docker 2025-06-27 13:41:26 +02:00
Digikwal
e168100ea6
fieldmate: chore(release): Trigger rebuild after fieldmate release (#2) 2025-06-27 13:41:06 +02:00
Digikwal
e6b36303f6
fieldmate: chore(release): Trigger rebuild after fieldmate release (#2) 2025-06-27 01:44:29 +02:00
digikwal
1d4637f720
Merge branch 'main' of github.com:digikwal/frappe_docker
# Conflicts:
#	.github/workflows/auto-merge-fieldmate.yml
2025-06-26 23:31:19 +02:00
Digikwal
2e0b19a98d
chore(fieldmate): Trigger rebuild from new fieldmate release (#1) 2025-06-26 23:25:59 +02:00
Digikwal
2c6cb26747
chore(fieldmate): Trigger rebuild from new fieldmate release (#1) 2025-06-26 23:11:04 +02:00
digikwal
a4b9b202de
chore: add .apps_versions directory for app-triggered rebuild markers 2025-06-26 22:34:02 +02:00
digikwal
115e2e6c31
Merge branch 'main' of github.com:digikwal/frappe_docker 2025-06-26 22:04:37 +02:00
Digikwal
a94b12dfc4
chore: add Makefile
Includes the following targets:
- `make lint`     → Run pre-commit hook for trailing whitespace
- `make format`   → Apply Prettier formatting across the repo
- `make push`     → Add, commit (with prompt), and push changes
- `make amend`    → Amend the last commit without editing message
- `make help`     → Show usage guide

Also includes optional extras like hook installation and reset utilities.
2025-06-26 22:04:21 +02:00
Digikwal
af63fefdc3
chore: add Makefile
Includes the following targets:
- `make lint`     → Run pre-commit hook for trailing whitespace
- `make format`   → Apply Prettier formatting across the repo
- `make push`     → Add, commit (with prompt), and push changes
- `make amend`    → Amend the last commit without editing message
- `make help`     → Show usage guide

Also includes optional extras like hook installation and reset utilities.
2025-06-26 22:00:08 +02:00
Digikwal
f2a579775d
chore: relax workflow failure 2025-06-26 21:45:16 +02:00
Digikwal
08713bc55a
chore: switch to fine-grained PAT 2025-06-26 21:34:12 +02:00
Digikwal
e3e6dc8cc7
fix(ci): switch to fine-grained PAT
Replaces GITHUB_TOKEN with a fine-grained personal access token to ensure that semantic-release can trigger the release.published workflow.

GitHub blocks workflows triggered by the default GITHUB_TOKEN from triggering other workflows,
which prevented our Docker build from running automatically after a release.
2025-06-26 21:30:14 +02:00
digikwal
3f91b42fb4
chore: add conventional-changelog-conventionalcommits for semantic-release 2025-06-26 20:42:38 +02:00
digikwal
952597b2cb
chore: add package-lock.json for CI consistency 2025-06-26 19:12:59 +02:00
digikwal
0cedfaeb89
Merge branch 'main' of github.com:digikwal/frappe_docker 2025-06-26 18:52:50 +02:00
Digikwal
19c1431fb3
ci: relax failure threshold 2025-06-26 18:42:26 +02:00
Digikwal
e657e07ac0
ci: relax failure threshold 2025-06-26 18:18:25 +02:00
digikwal
77f393fa79
chore: fix code formatting via Prettier 2025-06-26 18:07:51 +02:00
Digikwal
79046f9480
chore: remove deprecated artifacts 2025-06-26 17:48:50 +02:00
Digikwal
2d3d24ef0e
ci: refactor Docker build to trigger on release only
- Replaces workflow_run trigger with release.published
- Builds Docker image only when semantic-release publishes a new tag
- Tags image with immutable version and either :latest or :dev based on stability
- Removes unnecessary artifact dependencies and fallback tag logic
2025-06-26 17:47:22 +02:00
Digikwal
46748bbb5b
ci: semantic-release workflow with safe sequencing and test gate
- Triggers only after 'Release Trigger' workflow confirms 'Check' passed
- Runs full semantic-release with test gate
- Removes redundant changelog plugin install
- Exports release tag as artifact for use in downstream Docker build
2025-06-26 17:26:04 +02:00
Digikwal
e827431900
ci: Add unified Check workflow for lint and pre-commit
Introduces a reusable workflow that waits until the 'Check' workflow has successfully passed on the current commit.

Also adds 'release-trigger', which runs on push to main and calls this reusable workflow before allowing semantic-release to continue.

- Prevents race conditions between quality checks and release
- No external dependencies (uses native GitHub CLI)
- Improves reliability and control of CI/CD sequencing
2025-06-26 17:15:26 +02:00
Digikwal
d54fbd96cc
ci: Add reusable wait-for-check workflow to safely trigger release
Introduces a reusable workflow that waits until the 'Check' workflow has successfully passed on the current commit.

Also adds 'release-trigger', which runs on push to main and calls this reusable workflow before allowing semantic-release to continue.

- Prevents race conditions between quality checks and release
- No external dependencies (uses native GitHub CLI)
- Improves reliability and control of CI/CD sequencing
2025-06-26 17:14:42 +02:00
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