Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
I
Images
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
Images
Commits
3ea71c9d
Commit
3ea71c9d
authored
6 years ago
by
Erick Hitter
Browse files
Options
Downloads
Patches
Plain Diff
Try a PHP container
parent
8f980106
No related branches found
No related tags found
1 merge request
!5
Automated image builds for registry
Pipeline
#515
failed with stages
Stage:
Stage:
in 1 minute and 29 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+34
-8
34 additions, 8 deletions
.gitlab-ci.yml
with
34 additions
and
8 deletions
.gitlab-ci.yml
+
34
−
8
View file @
3ea71c9d
...
...
@@ -6,26 +6,52 @@ services:
before_script
:
-
docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
#
# TESTS
#
lint_dockerfile
:
stage
:
test
image
:
hadolint/hadolint:latest-debian
script
:
-
find . -name "Dockerfile" -execdir hadolint {} \;
#
# IMAGE BUILDS/PUSHES
#
# Golang
build-golang-master
:
stage
:
build
stage
:
deploy
script
:
-
docker build --pull -t "$CI_REGISTRY
/docker/images
/golang:latest" ./golang/latest
#
- docker push "$CI_REGISTRY
/docker/images
/golang:latest"
-
docker build --pull -t "$CI_REGISTRY
_IMAGE
/golang:latest" ./golang/latest
-
docker push "$CI_REGISTRY
_IMAGE
/golang:latest"
only
:
-
master
when
:
manual
build-golang-dev
:
stage
:
build
stage
:
deploy
script
:
-
docker build --pull -t "$CI_REGISTRY_IMAGE/golang:latest-dev" ./golang/latest
-
docker push "$CI_REGISTRY_IMAGE/golang:latest-dev"
except
:
-
master
# PHP 7.3
build-php-7.3-master
:
stage
:
deploy
script
:
-
docker build --pull -t "$CI_REGISTRY_IMAGE/php:7.3" ./php/7.3
-
docker push "$CI_REGISTRY_IMAGE/php:7.3"
only
:
-
master
when
:
manual
build-php-7.3-dev
:
stage
:
deploy
script
:
-
echo $CI_REGISTRY_IMAGE
-
echo $CI_REGISTRY
-
docker build --pull -t "$CI_REGISTRY/docker/images/golang:$CI_COMMIT_REF_SLUG" ./golang/latest
# - docker push "$CI_REGISTRY/docker/images/golang:$CI_COMMIT_REF_SLUG"
-
docker build --pull -t "$CI_REGISTRY_IMAGE/php:7.3-dev" ./php/7.3
-
docker push "$CI_REGISTRY_IMAGE/php:7.3-dev"
except
:
-
master
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