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
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
Duncan Macleod
base
Commits
91d253d7
Unverified
Commit
91d253d7
authored
9 months ago
by
Duncan Macleod
Browse files
Options
Downloads
Patches
Plain Diff
bullseye-backports: update CI to use new components
closes #17
parent
8d5a4410
No related branches found
No related tags found
No related merge requests found
Pipeline
#632773
passed
9 months ago
Stage: build
Stage: test
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+19
-10
19 additions, 10 deletions
.gitlab-ci.yml
.gitlab/ci/build.yml
+0
-58
0 additions, 58 deletions
.gitlab/ci/build.yml
.gitlab/ci/trigger.yml
+0
-23
0 additions, 23 deletions
.gitlab/ci/trigger.yml
with
19 additions
and
91 deletions
.gitlab-ci.yml
+
19
−
10
View file @
91d253d7
stages
:
-
build
-
scan
-
deploy
-
rebuild
include
:
# build and publish _this_ image
-
local
:
'
.gitlab/ci/build.yml'
# trigger rebuilds of downstream images
-
local
:
'
.gitlab/ci/trigger.yml'
# configure build/scan/test/push jobs
-
component
:
git.ligo.org/computing/gitlab/components/docker/all@1
inputs
:
# path of main project
upstream_project_path
:
docker/base
# compare container_scanning results of new images to this one
default_image_name
:
"
docker/base:bullseye-backports"
# run these commands to test the image
test_script
:
-
apt-get -yqq update
-
apt-cache show --no-all-versions 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
This diff is collapsed.
Click to expand it.
.gitlab/ci/build.yml
deleted
100644 → 0
+
0
−
58
View file @
8d5a4410
# ---------------------------
# Build workflow
# ---------------------------
include
:
# https://computing.docs.ligo.org/gitlab-ci-templates/
-
project
:
computing/gitlab-ci-templates
# https://computing.docs.ligo.org/gitlab-ci-templates/docker/
file
:
docker.yml
# https://docs.gitlab.com/ee/user/application_security/container_scanning/
-
template
:
Security/Container-Scanning.gitlab-ci.yml
# -- build the image --------
build
:
stage
:
build
extends
:
# https://computing.docs.ligo.org/gitlab-ci-templates/docker/#.docker:build
-
.docker:build
variables
:
# use the branch name as the tag
CI_REGISTRY_TAG
:
'
$CI_COMMIT_REF_SLUG'
# -- scan the image ---------
# check the image for vulnerabilities, see
# https://docs.gitlab.com/ee/user/application_security/container_scanning/
container_scanning
:
stage
:
scan
needs
:
[
build
]
variables
:
DOCKER_IMAGE
:
'
$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG'
# -- push the image ---------
.push
:
stage
:
deploy
needs
:
[
build
]
variables
:
# pull the branch image
PULL_IMAGE
:
"
$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG"
# push to igwn namespace
PUSH_IMAGE
:
"
igwn/$CI_PROJECT_NAME:$CI_COMMIT_REF_SLUG"
rules
:
# only run on pushes to the upstream repo (not on forks)
-
if
:
'
$CI_PROJECT_NAMESPACE
==
"docker"
&&
$CI_COMMIT_BRANCH'
push:docker_io
:
extends
:
# https://computing.docs.ligo.org/gitlab-ci-templates/docker/#.docker:push:docker_io
-
.docker:push:docker_io
-
.push
push:quay_io
:
extends
:
# https://computing.docs.ligo.org/gitlab-ci-templates/docker/#.docker:push:quay_io
-
.docker:push:quay_io
-
.push
This diff is collapsed.
Click to expand it.
.gitlab/ci/trigger.yml
deleted
100644 → 0
+
0
−
23
View file @
8d5a4410
# ---------------------------
# Downstream trigger workflow
# ---------------------------
.rebuild
:
stage
:
rebuild
rules
:
# only run on pushes to the upstream repo (not on forks)
-
if
:
'
$CI_PROJECT_NAMESPACE
==
"docker"
&&
$CI_COMMIT_BRANCH'
trigger
:
# default rebuilds to trigger on the same branch
branch
:
$CI_COMMIT_BRANCH
rebuild:builder
:
extends
:
[
.rebuild
]
trigger
:
project
:
docker/builder
#
# -- NOT required for bullseye-backports
# rebuild:lalsuite-dev:
# extends: [.rebuild]
# trigger:
# project: docker/lalsuite-dev
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