2021-12-03 14:37:25 +00:00
|
|
|
# docker-pipeline-test
|
|
|
|
|
2021-12-03 15:46:00 +00:00
|
|
|
This is a repository with an example application to test a custom docker pipeline
|
|
|
|
using Gitea, Woodpecker and a private registry.
|
|
|
|
|
2021-12-03 20:22:52 +00:00
|
|
|
Dockerfile:
|
|
|
|
|
|
|
|
- Runs composer install in temporary container
|
|
|
|
- Launches hello, calling on a mock class
|
|
|
|
|
|
|
|
Woodpecker:
|
|
|
|
|
|
|
|
- Runs phpunit against the code, testing a mock function
|
2021-12-03 15:46:00 +00:00
|
|
|
- Builds image from Dockerfile, tags the image and pushes to repo
|
|
|
|
|
2021-12-03 20:22:52 +00:00
|
|
|
Define your secrets as:
|
|
|
|
|
|
|
|
- `DOCKER_USERNAME`
|
|
|
|
- `DOCKER_PASSWORD`
|