Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
X
xml_plugin4rosetta
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
Package registry
Container registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
Digital Preservation
xml_plugin4rosetta
Commits
2883b2ba
Commit
2883b2ba
authored
2 years ago
by
Andreas Romeyke
Browse files
Options
Downloads
Patches
Plain Diff
- init
parent
18beac98
No related branches found
No related tags found
No related merge requests found
Pipeline
#3578
passed
2 years ago
Stage: build
Stage: test
Stage: packaging
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitignore
+5
-0
5 additions, 0 deletions
.gitignore
.gitlab-ci.yml
+73
-0
73 additions, 0 deletions
.gitlab-ci.yml
with
78 additions
and
0 deletions
.gitignore
0 → 100644
+
5
−
0
View file @
2883b2ba
.idea
*.jar
*.class
*~
build/
This diff is collapsed.
Click to expand it.
.gitlab-ci.yml
0 → 100644
+
73
−
0
View file @
2883b2ba
stages
:
# List of stages for jobs, and their order of execution
-
build
-
test
-
packaging
variables
:
EXLIBRIS_SDK_DIR
:
"
/exlibris"
ROSETTASDK
:
"
${EXLIBRIS_SDK_DIR}/7.3/lib/"
IMAGE_TARGET
:
"
$CI_REGISTRY_IMAGE/bullseye_subapp"
FF_USE_FASTZIP
:
"
true"
# These can be specified per job or per pipeline
ARTIFACT_COMPRESSION_LEVEL
:
"
fast"
CACHE_COMPRESSION_LEVEL
:
"
fast"
# CI_DEBUG_TRACE: "true"
default
:
image
:
# use this image for all later stages that happen after the build stage
name
:
"
${IMAGE_TARGET}:latest"
before_script
:
# These steps are run before EACH job.
-
export ROSETTASDK="${ROSETTASDK}"
build-env-job
:
# This job runs in the build stage, which runs first.
stage
:
build
timeout
:
30m
tags
:
-
"
docker"
image
:
# Use Kaniko base image to build a Docker image to use as the base image for later jobs.
name
:
gcr.io/kaniko-project/executor:debug
entrypoint
:
[
"
"
]
# Do not run the before_script tasks here, they wouldn't be included in the Docker image. Instead, provide an empty list of tasks.
before_script
:
[]
# docu: https://docs.gitlab.com/ee/ci/docker/using_kaniko.html, this is basically copy-pasted from there
script
:
-
mkdir -p /kaniko/.docker
-
echo "{\"auths\":{\"$CI_REGISTRY\":{\"auth\":\"$(printf "%s:%s" "$CI_REGISTRY_USER" "$CI_REGISTRY_PASSWORD" | base64 | tr -d '\n')\"},\"$(printf "%s" "$CI_DEPENDENCY_PROXY_SERVER" | cut -d':' -f1)\":{\"auth\":\"$(printf "%s:%s" "$CI_DEPENDENCY_PROXY_USER" "$CI_DEPENDENCY_PROXY_PASSWORD" | base64 | tr -d '\n')\"}}}" > /kaniko/.docker/config.json
# In this task, Kaniko executor is called to build the Image based on the Dockerfile provided with "--dockerfile".
-
echo "CI_PROJECT_DIR=${CI_PROJECT_DIR}"
-
>-
/kaniko/executor
--context "${CI_PROJECT_DIR}"
--dockerfile "${CI_PROJECT_DIR}/gitlab-ci/Dockerfile"
--destination "${IMAGE_TARGET}:latest"
--build-arg "GITDIR=${CI_PROJECT_DIR}"
--cache=true
--cache-repo=${CI_REGISTRY_IMAGE}
--cache-copy-layers=true
--snapshotMode=redo
--use-new-run
--ignore-var-run
test-job
:
stage
:
test
timeout
:
3h
tags
:
-
"
docker"
script
:
-
ls -lha /exlibris/
-
ROSETTASDK=$ROSETTASDK make -e check_prerequisites
-
ROSETTASDK=$ROSETTASDK make -e test
packaging-job
:
stage
:
packaging
timeout
:
3h
tags
:
-
"
docker"
script
:
-
ROSETTASDK=$ROSETTASDK make -e
artifacts
:
paths
:
-
./*.jar
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