You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+12-10Lines changed: 12 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ This repository is a template for providing [DDEV](https://ddev.readthedocs.io)
20
20
21
21
In DDEV, add-ons can be installed from the command line using the `ddev add-on get` command, for example, `ddev add-on get ddev/ddev-redis` or `ddev add-on get ddev/ddev-solr`.
22
22
23
-
This repository is a quick way to get started. You can create a new repo from this one by clicking the template button in the top right corner of the page.
23
+
This repository is a quick way to get started. You can create a new repo from this one by clicking <kbd>Use this template⌄</kbd> button in the top right corner of the page.
1. Click the green `Use this template button` (top right) > `Create a new repository`.
37
+
1. Click the green <kbd>Use this template ⌄</kbd> button (top right) > `Create a new repository`.
38
38
2. Name your repository using the `ddev-` prefix (e.g. `ddev-foobar`).
39
39
3. Add a meaningful description with relevant keywords for discoverability.
40
-
4. Click `Create repository` and wait for the automated `First time setup` commit.
40
+
4. Click <kbd>Create repository</kbd> and wait for the automated "First time setup" commit.
41
41
42
-
> [!NOTE]
43
-
> Automated updates to the `README.md` happen in a minute or so after creation.
42
+
> [!NOTE]
43
+
> Automated updates to the `README.md` happen in a minute or so after creation.
44
44
45
-
5. Clone your repository locally (use the green `<> Code` button for the URL).
45
+
5. Clone your repository locally (use the <kbd><> Code⌄</kbd> button for the URL).
46
46
6. Prepare your add-on files and tests, see [Getting started](#getting-started) for details.
47
47
7. Create a new PR for review and discussion (avoid committing directly to `main`, as that bypasses the collaborative process).
48
48
8. Merge or squash your PR into `main` (squash is preferred for a cleaner commit history).
49
49
9. Create a new [release](https://docs.github.com/en/repositories/releasing-projects-on-github/managing-releases-in-a-repository).
50
50
10. When ready to share, make your add-on discoverable by adding the `ddev-get`[topic](https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/classifying-your-repository-with-topics).
51
+
11. Check out the [DDEV Add-on Maintenance Guide](https://ddev.com/blog/ddev-add-on-maintenance-guide/).
4. Update the `install.yaml` to give the necessary instructions for installing the add-on:
65
66
66
67
* The fundamental line is the `project_files` directive, a list of files to be copied from this repo into the project `.ddev` directory.
67
-
* You can optionally add files to the `global_files` directive as well, which will cause files to be placed in the global `.ddev` directory, `~/.ddev`.
68
+
* You can optionally add files to the `global_files` directive as well, which will cause files to be placed in the global `~/.ddev` directory.
69
+
* Make sure to have the `ddev_version_constraint` directive, to keep the add-on users up to date.
68
70
* Finally, `pre_install_commands` and `post_install_commands` are supported. These can use the host-side environment variables documented [in DDEV docs](https://ddev.readthedocs.io/en/stable/users/extend/custom-commands/#environment-variables-provided).
69
71
70
72
5. Update `tests/test.bats` to provide a reasonable test for your repository. In most cases, you only need to modify the `health_checks()` function. Tests will run automatically on every push to the repository, and periodically each night. Please make sure to address test failures when they happen. Others will be depending on you. Bats is a testing framework that just uses Bash. To run a Bats test locally, you have to install [bats-core](https://bats-core.readthedocs.io/en/stable/installation.html) and its [libraries](https://github.com/ztombol/bats-docs) first. Then you download your add-on, and finally run `bats ./tests/test.bats` within the root of the uncompressed directory. To learn more about Bats see the [documentation](https://bats-core.readthedocs.io/en/stable/).
9. You can test PRs with `ddev add-on get https://github.com/<user>/<repo>/tarball/<branch>` or `https://github.com/<user>/<repo>/tarball/refs/pull/<pr-number>/head`.
75
77
10. You can test add-ons locally without GitHub by downloading them, making changes and running `ddev add-on get /path/to/add-on-directory`.
76
78
11. Update the [`README.md`](./README_ADDON.md) to describe the add-on, how to use it, and how to contribute. If there are any manual actions that have to be taken, please explain them. If it requires special configuration of the using project, please explain how to do those. Examples in [ddev/ddev-solr](https://github.com/ddev/ddev-solr), [ddev/ddev-memcached](https://github.com/ddev/ddev-memcached), and (advanced) [ddev-platformsh](https://github.com/ddev/ddev-platformsh).
77
-
12. Add a good short description to your repo, and add the `ddev-get`[topic](https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/classifying-your-repository-with-topics). It will immediately be added to the list provided by `ddev add-on list --all`.
78
-
13.When it has matured you will hopefully want to have it become an "official" maintained add-on. Open an issue in the [DDEV queue](https://github.com/ddev/ddev/issues) for that.
79
+
12. Add a clear short description to your repo, and add the `ddev-get`[topic](https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/classifying-your-repository-with-topics). It will immediately be added to the list provided by `ddev add-on list --all` and appear in the [DDEV Add-on Registry](https://addons.ddev.com/) within about 24 hours.
80
+
13.Once it matures and you want it to become an officially maintained add-on (i.e., supported by the DDEV team), open an issue in the [DDEV issue queue](https://github.com/ddev/ddev/issues).
79
81
80
82
## How to debug in GitHub Actions
81
83
@@ -86,7 +88,7 @@ See [full instructions](./README_DEBUG.md).
86
88
*[DDEV Add-ons: Creating, maintaining, testing](https://www.youtube.com/watch?v=TmXqQe48iqE) (part of the [DDEV Contributor Live Training](https://ddev.com/blog/contributor-training))
0 commit comments