Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Shawn Barratt
InfinityTable
Commits
74b20a78
Commit
74b20a78
authored
Sep 21, 2021
by
Shawn Barratt
Browse files
Update .gitlab-ci.yml file
parent
d67689a4
Pipeline
#22
canceled with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
0 → 100644
View file @
74b20a78
# 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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment