Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
base
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
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
base
Commits
6f131b40
Unverified
Commit
6f131b40
authored
9 months ago
by
Duncan Macleod
Browse files
Options
Downloads
Patches
Plain Diff
ci: use new CI/CD components
closes
#12
parent
2ce1060e
No related branches found
No related tags found
1 merge request
!26
Use new CI/CD components [el8]
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+41
-89
41 additions, 89 deletions
.gitlab-ci.yml
with
41 additions
and
89 deletions
.gitlab-ci.yml
+
41
−
89
View file @
6f131b40
variables
:
BASE_BRANCH
:
"
el8"
include
:
# include the cicd project to auto-configure 'build',
# 'container_scanning', and 'push:*' jobs, and the
# '.trigger' job template
-
project
:
docker/cicd
file
:
'
IGWN-Docker.gitlab-ci.yml'
# configure build/scan/push jobs
-
component
:
git.ligo.org/computing/gitlab/components/docker/all@1
inputs
:
# the name of the (upstream) project
project-path
:
docker/base
# the name of the image on external registries
docker-io-repository
:
igwn/base
quay-io-repository
:
igwn/base
# add a test job
test
:
image
:
"
$CI_APPLICATION_REPOSITORY:$CI_APPLICATION_TAG"
script
:
-
dnf search lalsuite
# -- trigger rebuilds of downstream pipelines
# builder
trigger:builder
:
extends
:
.trigger
trigger
:
project
:
docker/builder
# koji
trigger:koji
:
extends
:
.trigger
trigger
:
project
:
docker/koji-client
branch
:
el8
# lalsuite-dev
trigger:lalsuite-dev
:
extends
:
.trigger
trigger
:
project
:
docker/lalsuite-dev
# packaging
trigger:el8-production
:
extends
:
.trigger
trigger
:
project
:
docker/packaging
branch
:
el8-production
trigger:el8-production-staging
:
extends
:
.trigger
trigger
:
project
:
docker/packaging
branch
:
el8-production-staging
trigger:el8-testing
:
extends
:
.trigger
trigger
:
project
:
docker/packaging
branch
:
el8-testing
trigger:el8-staging
:
extends
:
.trigger
trigger
:
project
:
docker/packaging
branch
:
el8-staging
trigger:el8-resync
:
extends
:
.trigger
trigger
:
project
:
docker/packaging
branch
:
el8-resync
trigger:el8-resync-testing
:
extends
:
.trigger
trigger
:
project
:
docker/packaging
branch
:
el8-resync-testing
trigger:el8-resync-staging
:
extends
:
.trigger
trigger
:
project
:
docker/packaging
branch
:
el8-resync-staging
trigger:el8-development
:
extends
:
.trigger
trigger
:
# path of main project
upstream_project_path
:
docker/base
# compare container_scanning results of new images to this one
default_image_name
:
"
docker/base:${BASE_BRANCH}"
# run these commands to test the image
test_script
:
-
dnf info lalsuite
# this project deploys all branches of the main project
deploy_when
:
all
# remote registry repositories:
docker_io_repository
:
igwn/base
quay_io_repository
:
igwn/base
# trigger rebuilds of the same branch in other projects
trigger_projects
:
-
docker/builder
-
docker/koji-client
-
docker/lalsuite-dev
# see docker_trigger_packaging below for custom triggers
# -- extra triggers for docker/packaging branches
docker_trigger_packaging
:
extends
:
docker_trigger
parallel
:
matrix
:
-
BRANCH
:
-
${BASE_BRANCH}-development
-
${BASE_BRANCH}-production
-
${BASE_BRANCH}-production-staging
-
${BASE_BRANCH}-resync
-
${BASE_BRANCH}-resync-staging
-
${BASE_BRANCH}-resync-testing
-
${BASE_BRANCH}-staging
-
${BASE_BRANCH}-testing
trigger
:
branch
:
$BRANCH
project
:
docker/packaging
branch
:
el8-development
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