add Dockerfile instructions

This commit is contained in:
Simon Vieille 2023-10-18 19:47:44 +02:00
parent 0759e756fc
commit 1a85b85d5c
Signed by: deblan
GPG key ID: 579388D585F70417
2 changed files with 36 additions and 0 deletions

32
.woodpecker/.build.yml Normal file
View file

@ -0,0 +1,32 @@
steps:
docker:
image: docker:dind
secrets: [registry_user, registry_password, registry_docker_password]
commands:
- echo "$REGISTRY_PASSWORD" | docker login -u "$REGISTRY_USER" --password-stdin gitnet.fr
- echo "$REGISTRY_DOCKER_PASSWORD" | docker login -u "$REGISTRY_USER" --password-stdin
- docker build -t "deblan/mage:latest" -f "./Dockerfile.php" .
- docker tag "deblan/mage:latest" "gitnet.fr/deblan/mage:latest"
- docker push "gitnet.fr/deblan/mage:latest"
- docker push "deblan/php:latest"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
when:
- event: cron
- branch: [master]
mail:
image: deblan/woodpecker-email
settings:
host:
from_secret: mail_host
username:
from_secret: mail_username
password:
from_secret: mail_password
from:
from_secret: mail_from
subject: "[{{ repo.owner }}/{{ repo.name }}] Pipeline #{{ build.number }}: {{ build.status }}"
when:
- event: cron
- status: [success, failure]

View file

@ -1 +1,5 @@
FROM deblan/php:8.1
RUN apt-get update && apt-get -y install rsync openssh-client
RUN composer global require andres-montanez/magallanes
RUN ln -s /root/.config/composer/vendor/bin/mage /usr/bin/mage