Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Docker
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SmartDataLab
public
CI-CD components
Docker
Commits
ed4f4561
Commit
ed4f4561
authored
1 year ago
by
Benguria Elguezabal, Gorka
Browse files
Options
Downloads
Plain Diff
Merge commit '
e3a95408
'
# Conflicts: # .gitlab-ci.yml
parents
28bd4f9c
e3a95408
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Pipeline
#154932
passed
1 year ago
Stage: .pre
Stage: build
Stage: publish
Changes
3
Pipelines
2
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+4
-0
4 additions, 0 deletions
.gitlab-ci.yml
.gitleaksignore
+1
-0
1 addition, 0 deletions
.gitleaksignore
templates/gitlab-ci-docker.yml
+2
-2
2 additions, 2 deletions
templates/gitlab-ci-docker.yml
with
7 additions
and
2 deletions
.gitlab-ci.yml
+
4
−
0
View file @
ed4f4561
variables
:
GIT_STRATEGY
:
clone
include
:
-
component
:
git.code.tecnalia.com/smartdatalab/public/ci-cd-components/gitlab-ci/extract@master
inputs
:
...
...
@@ -21,6 +24,7 @@ include:
stages
:
-
build
-
test
-
publish
variables
:
...
...
This diff is collapsed.
Click to expand it.
.gitleaksignore
0 → 100644
+
1
−
0
View file @
ed4f4561
a64568eb3639a163cb0f387257017209a85869d7:README.md:generic-api-key:181
\ No newline at end of file
This diff is collapsed.
Click to expand it.
templates/gitlab-ci-docker.yml
+
2
−
2
View file @
ed4f4561
...
...
@@ -650,7 +650,7 @@ stages:
kaniko_registry_mirror_option="--registry-mirror $(echo ${DOCKER_REGISTRY_MIRROR} | sed "s|^https*://||")"
fi
log_info "Build & deploy image $docker_image"
log_info "Kaniko command: /kaniko/executor --context $(docker_context_path) --dockerfile $DOCKER_FILE --destination $docker_image ${kaniko_cache_args} $kaniko_registry_mirror_option $DOCKER_METADATA $DOCKER_BUILD_ARGS $*"
log_info "Kaniko command: /kaniko/executor
${TRACE+--verbosity debug}
--context $(docker_context_path) --dockerfile $DOCKER_FILE --destination $docker_image ${kaniko_cache_args} $kaniko_registry_mirror_option $DOCKER_METADATA $DOCKER_BUILD_ARGS $*"
# shellcheck disable=SC2086
/kaniko/executor ${TRACE+--verbosity debug} --context "$(docker_context_path)" --dockerfile "$DOCKER_FILE" --destination "$docker_image" ${kaniko_cache_args} $kaniko_registry_mirror_option $DOCKER_METADATA $DOCKER_BUILD_ARGS "$@"
}
...
...
@@ -968,7 +968,7 @@ docker-trivy:
TRIVY_CACHE_DIR
:
"
.trivycache/"
script
:
|
# cache cleanup is needed when scanning images with the same tags, it does not remove the database
trivy image --clear-cache
trivy
clean --scan-cache || trivy
image --clear-cache
export TRIVY_USERNAME=${DOCKER_REGISTRY_SNAPSHOT_USER:-${DOCKER_REGISTRY_USER:-$CI_REGISTRY_USER}}
export TRIVY_PASSWORD=${DOCKER_REGISTRY_SNAPSHOT_PASSWORD:-${DOCKER_REGISTRY_PASSWORD:-$CI_REGISTRY_PASSWORD}}
basename=$(echo "${DOCKER_SNAPSHOT_IMAGE}" | sed 's|[/:]|_|g')
...
...
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