Try CI with custom docker file
Some checks failed
Gitea - Tutorials/php-kilo/master There was a failure building this commit
Some checks failed
Gitea - Tutorials/php-kilo/master There was a failure building this commit
This commit is contained in:
parent
fb5dd66bee
commit
94a3e2df7a
2
Dockerfile
Normal file
2
Dockerfile
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
FROM php:7.4-cli-alpine
|
||||||
|
RUN docker-php-ext-install ffi
|
9
Jenkinsfile
vendored
9
Jenkinsfile
vendored
@ -1,15 +1,8 @@
|
|||||||
pipeline {
|
pipeline {
|
||||||
agent none
|
agent { dockerfile true }
|
||||||
stages {
|
stages {
|
||||||
stage('PHP 7.4') {
|
stage('PHP 7.4') {
|
||||||
agent {
|
|
||||||
docker {
|
|
||||||
image 'php:7.4-cli-alpine'
|
|
||||||
args '-u root --privileged'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
steps {
|
steps {
|
||||||
sh 'docker-php-ext-install ffi'
|
|
||||||
sh 'apk add --no-cache php7-phpdbg'
|
sh 'apk add --no-cache php7-phpdbg'
|
||||||
sh 'curl -sS https://getcomposer.org/installer | php'
|
sh 'curl -sS https://getcomposer.org/installer | php'
|
||||||
sh 'php composer.phar install'
|
sh 'php composer.phar install'
|
||||||
|
Loading…
Reference in New Issue
Block a user