Skip to content
Snippets Groups Projects
Commit 577f79d1 authored by François Agneray's avatar François Agneray
Browse files

Ajout du gitlab-ci

parent 5924fa1f
No related branches found
No related tags found
1 merge request!8v20.0.0
Pipeline #1924 failed
......@@ -6,7 +6,6 @@ build/*
log/*
cache/*
._*
.~lock.*
.buildpath
.DS_Store
.idea
......
stages:
- install_php
- install_frontend
- build
variables:
VERSION: "4.1"
CONTAINER_IMAGE: portus.lam.fr/jdev/jdev-boarding
install_php:
image: jakzal/phpqa
stage: install_php
script:
- composer install --ignore-platform-reqs
cache:
paths:
- vendor
policy: push
only:
refs:
- develop
install_frontend:
image: node
stage: install_frontend
script:
- npm install -g bower
- bower install
cache:
paths:
- public/bower_components
policy: push
only:
refs:
- develop
build:
image: docker:stable
stage: build
script:
- docker login -u fagneray -p $PORTUS_TOKEN portus.lam.fr
- docker pull $CONTAINER_IMAGE:latest || true
- docker build --cache-from $CONTAINER_IMAGE:latest -t $CONTAINER_IMAGE:latest .
- docker push $CONTAINER_IMAGE:latest
cache:
paths:
- vendor
- public/bower_components
policy: pull
only:
refs:
- develop
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment