Try CI with custom docker file
Gitea - Tutorials/php-kilo/master There was a failure building this commit Details

This commit is contained in:
Timothy Warren 2019-12-04 15:59:18 -05:00
parent fb5dd66bee
commit 94a3e2df7a
2 changed files with 3 additions and 8 deletions

2
Dockerfile Normal file
View File

@ -0,0 +1,2 @@
FROM php:7.4-cli-alpine
RUN docker-php-ext-install ffi

9
Jenkinsfile vendored
View File

@ -1,15 +1,8 @@
pipeline {
agent none
agent { dockerfile true }
stages {
stage('PHP 7.4') {
agent {
docker {
image 'php:7.4-cli-alpine'
args '-u root --privileged'
}
}
steps {
sh 'docker-php-ext-install ffi'
sh 'apk add --no-cache php7-phpdbg'
sh 'curl -sS https://getcomposer.org/installer | php'
sh 'php composer.phar install'