Commit 74b20a78 authored by Shawn Barratt's avatar Shawn Barratt
Browse files

Update .gitlab-ci.yml file

parent d67689a4
Pipeline #22 canceled with stages
# Select image from https://hub.docker.com/_/php/
stages:
- test
- build
# Run our tests
# If Xdebug was installed you can generate a coverage report and see code coverage metrics.
test:
stage: test
image: php:7.4
# Select what we should cache between builds
cache:
paths:
- vendor/
before_script:
- apt-get update
- apt-get install libldap2-dev libxml2-dev git unzip -y && pecl install xdebug redis-5.3.2 && docker-php-ext-configure ldap
- docker-php-ext-install -j$(nproc) pdo pdo_mysql ldap bcmath soap sockets
- docker-php-ext-enable xdebug redis
- curl https://getcomposer.org/composer-stable.phar -o composer.phar
- php composer.phar install --dev
- curl https://get.symfony.com/cli/installer | bash
script:
- php composer.phar test
build:
stage: build
image:
name: gcr.io/kaniko-project/executor
entrypoint: [""]
services:
- docker:dind
before_script:
- amazon-linux-extras install docker
- aws --version
- docker --version
script:
- mkdir -p /kaniko/.docker
- >
echo "{ \"credsStore\": \"ecr-login\" }" > /kaniko/.docker/config.json
- /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile --destination $CI_REGISTRY_IMAGE:$CI_COMMIT_TAG
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment