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
22ffe283
Commit
22ffe283
authored
5 years ago
by
jurgenhaas
Browse files
Options
Downloads
Patches
Plain Diff
Add version to the images again
parent
cd40bc40
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+7
-4
7 additions, 4 deletions
.gitlab-ci.yml
Dockerfile
+1
-0
1 addition, 0 deletions
Dockerfile
with
8 additions
and
4 deletions
.gitlab-ci.yml
+
7
−
4
View file @
22ffe283
variables
:
VERSION
:
${CI_COMMIT_TAG}
before_script
:
-
docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
#php-7.0:
# stage: build
# script:
# - docker build --pull --build-arg ALPINE_VERSION=3.5 --build-arg PHP_VERSION=7.0 -t $CI_REGISTRY_IMAGE:php-7.0 .
# - 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 push $CI_REGISTRY_IMAGE:php-7.0
# only:
# - master
...
...
@@ -12,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 -t $CI_REGISTRY_IMAGE:php-7.1 .
# - 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 push $CI_REGISTRY_IMAGE:php-7.1
# only:
# - master
...
...
@@ -20,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 -t $CI_REGISTRY_IMAGE:php-7.2 .
-
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 push $CI_REGISTRY_IMAGE:php-7.2
only
:
-
master
...
...
@@ -28,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 -t $CI_REGISTRY_IMAGE:php-7.3 .
-
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 push $CI_REGISTRY_IMAGE:php-7.3
only
:
-
master
This diff is collapsed.
Click to expand it.
Dockerfile
+
1
−
0
View file @
22ffe283
...
...
@@ -4,6 +4,7 @@ FROM alpine:${ALPINE_VERSION}
LABEL
com.example.vendor="LakeDrops" \
maintainer="juergen.haas@lakedrops.com" \
version="${VERSION}" \
description="An image for GitLab runner to build and test Drupal projects."
ARG
ALPINE_VERSION
...
...
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