https://github.com/pgroenbaek/drone-python3-mariadb
DroneCI plugin with Python3 and MariaDB/MySQL utilities.
https://github.com/pgroenbaek/drone-python3-mariadb
drone-ci drone-plugin mariadb mysql
Last synced: 2 months ago
JSON representation
DroneCI plugin with Python3 and MariaDB/MySQL utilities.
- Host: GitHub
- URL: https://github.com/pgroenbaek/drone-python3-mariadb
- Owner: pgroenbaek
- License: gpl-3.0
- Created: 2025-02-09T14:36:27.000Z (3 months ago)
- Default Branch: master
- Last Pushed: 2025-03-07T19:13:49.000Z (2 months ago)
- Last Synced: 2025-03-07T20:24:52.925Z (2 months ago)
- Topics: drone-ci, drone-plugin, mariadb, mysql
- Language: Dockerfile
- Homepage:
- Size: 14.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# drone-python3-mariadb
[](https://hub.docker.com/r/pgroenbaek/drone-python3-mariadb/tags)
[](https://www.drone.io/)
[](https://www.python.org/)
[](https://mariadb.org/)
[](https://www.mysql.com/)
[](/LICENSE)This [Drone CI](https://drone.io/) plugin allows you to use `python` and `pip` in pipelines along with MariaDB and MySQL utilities.
## Usage
The following example shows how to configure a pipeline step to use the plugin from Docker Hub:
```yaml
kind: pipeline
name: check versionsteps:
- name: versions
image: pgroenbaek/drone-python3-mariadb
commands:
- python --version
- pip --version
- mariadb --version
- mysql --version
- mysqldump --version```
### Using a private container registry
If you would rather use the plugin from a private container registry, clone this repository, then build and push the created docker image to your private registry:
```bash
docker login -u
docker build -t .
docker tag /drone-python3-mariadb
docker push /drone-python3-mariadb
```Replace the ``, `` and `` parameters accordingly.
Now you can use the docker image you built as a drone plugin:
```yaml
kind: pipeline
name: check versionsteps:
- name: versions
image: /drone-python3-mariadb:
commands:
- python --version
- pip --version
- mariadb --version
- mysql --version
- mysqldump --versionimage_pull_secrets:
- docker_config_json
```Note the `image_pull_secrets` parameter at the bottom.
For Drone CI to know how to authenticate with your private container registry a secret named `docker_config_json` must be defined for the pipeline.
Add the following as a secret named `docker_config_json`:
```json
{"auths": {"": {"auth": ""}}}
```
Replace the `` and `` parameters with your values.## License
This drone plugin was created by Peter Grønbæk Andersen and is licensed under [GNU GPL v3](./LICENSE).