PHP + Composer + PHPUnit pipeline for Woodpecker
Christopher Vagnetoft
75fdf4181e
All checks were successful
continuous-integration/woodpecker the build was successful
|
||
---|---|---|
src | ||
tests | ||
.dockerignore | ||
.gitignore | ||
.woodpecker.yml | ||
composer.json | ||
Dockerfile | ||
hello | ||
phpunit.xml | ||
README.md |
docker-pipeline-test
This is a repository with an example application to test a custom docker pipeline using Gitea, Woodpecker and a private registry.
Dockerfile:
- Runs composer install in temporary container
- Launches hello, calling on a mock class
Woodpecker:
- Runs phpunit against the code, testing a mock function
- Builds image from Dockerfile, tags the image and pushes to repo
Define your secrets as:
DOCKER_USERNAME
DOCKER_PASSWORD