Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
open-source
MetaGer
Commits
d03bf763
Commit
d03bf763
authored
May 12, 2022
by
Dominik Hebeler
Browse files
adding needs
parent
9beecef1
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab/ci/build_docker_images.yml
View file @
d03bf763
fpm
:
stage
:
build_docker_images
image
:
$BUILD_DOCKER_IMAGE
needs
:
-
composer
before_script
:
-
docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
# We need the vendor files in our final image. Make sure to not ignore the folder
...
...
@@ -17,6 +19,8 @@ fpm:
nginx
:
stage
:
build_docker_images
image
:
$BUILD_DOCKER_IMAGE
needs
:
-
npm
before_script
:
-
docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
script
:
...
...
@@ -31,12 +35,15 @@ nginx:
cleanup_composer_image
:
stage
:
build_docker_images
image
:
curlimages/curl
needs
:
-
composer
script
:
-
'
curl
-X
DELETE
--fail
-H
"JOB-TOKEN:
$CI_JOB_TOKEN"
"$CI_API_V4_URL/projects/$CI_PROJECT_ID/registry/repositories/418/tags/$DOCKER_COMPOSER_IMAGE_TAG"'
.cleanup_revision_images
:
stage
:
build_docker_images
image
:
$DEPLOY_KUBERNETES_IMAGE
needs
:
[]
variables
:
KEEP_N
:
9
# Trim to the latest 9 revisions as the 10th will be deleted in the next stage
script
:
...
...
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