Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal-operations
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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
drupal
paas
drupal-operations
Commits
c1c1c152
Commit
c1c1c152
authored
2 years ago
by
Dimitra Chatzichrysou
Browse files
Options
Downloads
Patches
Plain Diff
Update .gitlab-ci.yml
parent
9610c568
No related branches found
No related tags found
1 merge request
!20
Update Dockerfile and gitlab-ci
Pipeline
#3927958
passed
2 years ago
Stage: build
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+13
-20
13 additions, 20 deletions
.gitlab-ci.yml
chart/drupal-operations/templates/database-restore.yaml
+1
-1
1 addition, 1 deletion
chart/drupal-operations/templates/database-restore.yaml
with
14 additions
and
21 deletions
.gitlab-ci.yml
+
13
−
20
View file @
c1c1c152
workflow
:
rules
:
-
if
:
'
$CI_PIPELINE_SOURCE
==
"merge_request_event"'
-
if
:
'
$CI_COMMIT_BRANCH
&&
$CI_OPEN_MERGE_REQUESTS'
when
:
never
-
if
:
'
$CI_COMMIT_BRANCH'
include
:
-
project
:
'
paas-tools/infrastructure-ci'
file
:
'
docker-images-ci-templates/DockerImages.gitlab-ci.yml'
stages
:
-
build
build
:
stage
:
build
image
:
# We recommend using the CERN version of the Kaniko image: gitlab-registry.cern.ch/ci-tools/docker-image-builder
name
:
gitlab-registry.cern.ch/ci-tools/docker-image-builder
entrypoint
:
[
"
"
]
script
:
-
|
case "$CI_COMMIT_BRANCH" in
master) export DATE=$(date -u +%Y.%m.%dT%H-%M-%SZ); export TAG="RELEASE"-${DATE}; echo "TAG=$TAG" >> build.env ;;
*) export TAG=$CI_COMMIT_SHORT_SHA ;;
esac
# This is not the common Authentication config, unknown reason why common config fails
-
echo "{\"auths\":{\"$CI_REGISTRY\":{\"auth\":\"$(echo -n ${CI_REGISTRY_USER}:${CI_REGISTRY_PASSWORD} | base64)\"}}}" > /kaniko/.docker/config.json
# Image builder
-
/kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile --destination ${CI_REGISTRY_IMAGE}/velero-restore:${CI_COMMIT_BRANCH}-${TAG}
-
echo "Image pushed successfully to ${CI_REGISTRY_IMAGE}/velero-restore:${CI_COMMIT_BRANCH}-${TAG}"
artifacts
:
reports
:
dotenv
:
build.env
variables
:
CI_REGISTRY_IMAGE
:
${CI_REGISTRY_IMAGE}/velero-restore
This diff is collapsed.
Click to expand it.
chart/drupal-operations/templates/database-restore.yaml
+
1
−
1
View file @
c1c1c152
...
...
@@ -16,7 +16,7 @@ spec:
description
:
The namespace of the drupal site
steps
:
-
name
:
database-restore
image
:
gitlab-registry.cern.ch/drupal/paas/drupal-operations/openshift-cli:velero-restore
image
:
{{
.Values.image
}}
imagePullPolicy
:
Always
command
:
-
/bin/sh
...
...
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