Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
bc_uab_matlab
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
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
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
Bo-Chun Chen
bc_uab_matlab
Commits
0ec978cb
Unverified
Commit
0ec978cb
authored
3 years ago
by
treydock
Committed by
GitHub
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Use refactored ondemand-packaging (#18)
parent
6ea5d8dc
Branches
matlab-r2022a
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+13
-19
13 additions, 19 deletions
.gitlab-ci.yml
with
13 additions
and
19 deletions
.gitlab-ci.yml
+
13
−
19
View file @
0ec978cb
variables
:
# older versions of git have issues fetching.
GIT_STRATEGY
:
clone
OOD_PACKAGING_DEBUG
:
'
true'
OOD_PACKAGING_GPG_PRIVATE_KEY
:
/systems/osc_certs/gpg/ondemand/ondemand.sec
OOD_PACKAGING_GPG_PASSPHRASE
:
/systems/osc_certs/gpg/ondemand/.gpgpass
before_script
:
-
docker info
-
'
[
-d
tmp
]
||
mkdir
tmp'
-
git clone https://github.com/OSC/ondemand-packaging.git tmp/ondemand-packaging
-
cp /systems/osc_certs/gpg/ondemand/.gpgpass $CI_PROJECT_DIR/tmp/ondemand-packaging/
-
cp /systems/osc_certs/gpg/ondemand/ondemand.sec $CI_PROJECT_DIR/tmp/ondemand-packaging/
-
git clone --branch main https://github.com/OSC/ondemand-packaging.git tmp/ondemand-packaging
stages
:
-
build
-
deploy
rpm-build
:
stage
:
build
only
:
-
tags
rules
:
-
if
:
$CI_COMMIT_TAG
-
if
:
'
$CI_PIPELINE_SOURCE
==
"external_pull_request_event"'
script
:
-
./tmp/ondemand-packaging/build.sh -w $CI_PROJECT_DIR/tmp/work -o $CI_PROJECT_DIR/tmp/output -V $CI_COMMIT_TAG -u -v $CI_PROJECT_DIR/packaging
-
./tmp/ondemand-packaging/bin/ood_packaging -w $CI_PROJECT_DIR/tmp/work -o $CI_PROJECT_DIR/tmp/output -V $CI_COMMIT_TAG -T $CI_PROJECT_DIR
parallel
:
matrix
:
-
OOD_PACKAGING_DIST
:
[
el7
,
el8
]
artifacts
:
paths
:
-
tmp/output
name
:
"
$CI_PROJECT_NAME-$CI_COMMIT_TAG"
rpm-deploy-ci
:
stage
:
deploy
only
:
-
tags
script
:
-
./tmp/ondemand-packaging/release.py --debug --pkey /systems/osc_certs/ssh/ondemand-packaging/id_rsa -c ci ./tmp/output/*
rpm-deploy
:
stage
:
deploy
only
:
-
tags
except
:
variables
:
-
$CI_COMMIT_TAG =~ /.*_.*/
rules
:
-
if
:
$CI_COMMIT_TAG
script
:
-
./tmp/ondemand-packaging/release.py --debug --pkey /systems/osc_certs/ssh/ondemand-packaging/id_rsa -c main ./tmp/output/*
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