Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
GitLab Drupal CI
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Docker
GitLab Drupal CI
Commits
a9b74b3d
Commit
a9b74b3d
authored
4 years ago
by
jurgenhaas
Browse files
Options
Downloads
Patches
Plain Diff
l3d#46
Fix env variable PHP_VERSION
parent
5ce56b71
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#28313
passed
4 years ago
Stage: build
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+5
-5
5 additions, 5 deletions
.gitlab-ci.yml
CHANGELOG
+4
-0
4 additions, 0 deletions
CHANGELOG
Dockerfile
+6
-5
6 additions, 5 deletions
Dockerfile
with
15 additions
and
10 deletions
.gitlab-ci.yml
+
5
−
5
View file @
a9b74b3d
...
...
@@ -7,7 +7,7 @@ before_script:
#php-7.0:
# stage: build
# script:
# - docker build --pull --build-arg ALPINE_VERSION=3.5 --build-arg PHP_VERSION=7.0 --build-arg VERSION=${VERSION} -t $CI_REGISTRY_IMAGE:php-7.0 .
# - docker build --pull --build-arg ALPINE_VERSION=3.5 --build-arg PHP_
MAJOR_
VERSION=7.0 --build-arg VERSION=${VERSION} -t $CI_REGISTRY_IMAGE:php-7.0 .
# - docker push $CI_REGISTRY_IMAGE:php-7.0
# only:
# - master
...
...
@@ -15,7 +15,7 @@ before_script:
#php-7.1:
# stage: build
# script:
# - docker build --pull --build-arg ALPINE_VERSION=3.7 --build-arg PHP_VERSION=7.1 --build-arg VERSION=${VERSION} -t $CI_REGISTRY_IMAGE:php-7.1 .
# - docker build --pull --build-arg ALPINE_VERSION=3.7 --build-arg PHP_
MAJOR_
VERSION=7.1 --build-arg VERSION=${VERSION} -t $CI_REGISTRY_IMAGE:php-7.1 .
# - docker push $CI_REGISTRY_IMAGE:php-7.1
# only:
# - master
...
...
@@ -23,7 +23,7 @@ before_script:
php-7.2
:
stage
:
build
script
:
-
docker build --pull --build-arg ALPINE_VERSION=3.8 --build-arg PHP_VERSION=7.2 --build-arg VERSION=${VERSION} -t $CI_REGISTRY_IMAGE:php-7.2 .
-
docker build --pull --build-arg ALPINE_VERSION=3.8 --build-arg PHP_
MAJOR_
VERSION=7.2 --build-arg VERSION=${VERSION} -t $CI_REGISTRY_IMAGE:php-7.2 .
-
docker push $CI_REGISTRY_IMAGE:php-7.2
only
:
-
master
...
...
@@ -31,7 +31,7 @@ php-7.2:
php-7.3
:
stage
:
build
script
:
-
docker build --pull --build-arg ALPINE_VERSION=3.11 --build-arg PHP_VERSION=7.3 --build-arg VERSION=${VERSION} -t $CI_REGISTRY_IMAGE:php-7.3 .
-
docker build --pull --build-arg ALPINE_VERSION=3.11 --build-arg PHP_
MAJOR_
VERSION=7.3 --build-arg VERSION=${VERSION} -t $CI_REGISTRY_IMAGE:php-7.3 .
-
docker push $CI_REGISTRY_IMAGE:php-7.3
only
:
-
master
...
...
@@ -39,7 +39,7 @@ php-7.3:
php-7.4
:
stage
:
build
script
:
-
docker build --pull --build-arg ALPINE_VERSION=3.11 --build-arg PHP_VERSION=7.4 --build-arg VERSION=${VERSION} -t $CI_REGISTRY_IMAGE:php-7.4 .
-
docker build --pull --build-arg ALPINE_VERSION=3.11 --build-arg PHP_
MAJOR_
VERSION=7.4 --build-arg VERSION=${VERSION} -t $CI_REGISTRY_IMAGE:php-7.4 .
-
docker push $CI_REGISTRY_IMAGE:php-7.4
only
:
-
master
This diff is collapsed.
Click to expand it.
CHANGELOG
+
4
−
0
View file @
a9b74b3d
v1.5.2 2020-10-16
-----------------
Fix env variable PHP_VERSION
v1.5.1 2020-10-15
-----------------
Add container for PHP 7.4
...
...
This diff is collapsed.
Click to expand it.
Dockerfile
+
6
−
5
View file @
a9b74b3d
ARG
ALPINE_VERSION
ARG
PHP_VERSION
ARG
PHP_
MAJOR_
VERSION
FROM
php:${PHP_VERSION}-cli-alpine${ALPINE_VERSION}
FROM
php:${PHP_
MAJOR_
VERSION}-cli-alpine${ALPINE_VERSION}
ARG
VERSION
...
...
@@ -11,7 +11,7 @@ LABEL com.example.vendor="LakeDrops" \
description="An image for GitLab runner to build and test Drupal projects."
ARG
ALPINE_VERSION
ARG
PHP_VERSION
ARG
PHP_
MAJOR_
VERSION
ARG
compose_version=1.25.1
ARG
glibc_version=2.28-r0
ARG
apkArch
...
...
@@ -51,10 +51,10 @@ RUN echo 'hosts: files dns' > /etc/nsswitch.conf && \
\
apk update
&&
\
apk add
--no-cache
mdocml-apropos openssh wget make patch bash fish python3 git git-lfs unzip acl libpng-dev libzip-dev
&&
\
if
[
"
${
PHP_VERSION
}
"
=
"7.3"
]
;
then
\
if
[
"
${
PHP_
MAJOR_
VERSION
}
"
=
"7.3"
]
;
then
\
apk add
--no-cache
gnu-libiconv
;
\
fi
&&
\
if
[
"
${
PHP_VERSION
}
"
=
"7.4"
]
;
then
\
if
[
"
${
PHP_
MAJOR_
VERSION
}
"
=
"7.4"
]
;
then
\
apk add
--no-cache
gnu-libiconv
;
\
fi
&&
\
\
...
...
@@ -107,6 +107,7 @@ RUN echo 'hosts: files dns' > /etc/nsswitch.conf && \
ADD
bin/* /usr/local/bin/
ENV
LAKEDROPS_DEV_DC_OPTIONS "-T"
ENV
PHP_VERSION "${PHP_MAJOR_VERSION}"
ENTRYPOINT
["docker-entrypoint.sh"]
CMD
["sh"]
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment