Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
hpc-factory
Manage
Activity
Members
Labels
Plan
Issues
76
Issue boards
Milestones
Wiki
Code
Merge requests
13
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
rc
hpc-factory
Commits
f1468592
Commit
f1468592
authored
2 years ago
by
Bo-Chun Chen
Browse files
Options
Downloads
Patches
Plain Diff
Move CRI_XCBC clone to before script
parent
5134942d
No related branches found
No related tags found
1 merge request
!10
Add gitlab ci into project
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+19
-19
19 additions, 19 deletions
.gitlab-ci.yml
with
19 additions
and
19 deletions
.gitlab-ci.yml
+
19
−
19
View file @
f1468592
...
...
@@ -35,6 +35,24 @@ before_script:
-
source venv/bin/activate
-
pip install --upgrade pip
-
pip install s3cmd ansible python-openstackclient
-
|
if [ ! -d $CI_PROJECT_DIR/CRI_XCBC ]; then
git clone https://github.com/uabrc/CRI_XCBC.git
cd CRI_XCBC
git remote add upstream https://github.com/jprorama/CRI_XCBC.git
cd ..
fi
-
cd CRI_XCBC
-
git config user.name "${GIT_AUTHOR_NAME}"
-
git config user.email "${GIT_AUTHOR_EMAIL}"
-
git fetch --all
-
git fetch origin '+refs/pull/*/head:refs/remotes/origin/pr/*'
-
git fetch upstream '+refs/pull/*/head:refs/remotes/upstream/pr/*'
-
git checkout uab-prod
-
git merge origin/uab-prod
-
git checkout -b integration
-
git merge upstream/dev
-
cd ..
stages
:
-
build
...
...
@@ -46,26 +64,8 @@ setup_environment:
tags
:
-
build
script
:
-
|
if [ ! -d $CI_PROJECT_DIR/CRI_XCBC ]; then
git clone https://github.com/uabrc/CRI_XCBC.git
cd CRI_XCBC
git remote add upstream https://github.com/jprorama/CRI_XCBC.git
cd ..
fi
-
cd CRI_XCBC
-
git config user.name "${GIT_AUTHOR_NAME}"
-
git config user.email "${GIT_AUTHOR_EMAIL}"
-
git fetch --all
-
git fetch origin '+refs/pull/*/head:refs/remotes/origin/pr/*'
-
git fetch upstream '+refs/pull/*/head:refs/remotes/upstream/pr/*'
-
git checkout uab-prod
-
git merge origin/uab-prod
-
git checkout -b integration
-
git merge upstream/dev
-
echo "CRI_XCBC_HEAD=$(git rev-parse --short HEAD)" | tee $CI_PROJECT_DIR/build.env
-
echo "CRI_XCBC_HEAD=$(cd CRI_XCBC; git rev-parse --short HEAD)" | tee $CI_PROJECT_DIR/build.env
-
echo "BUILD_DATE=$(TZ=America/Chicago date +%Y%m%d)" | tee $CI_PROJECT_DIR/build.env
-
cd ..
-
s3cmd get --force --host=$AWS_HOST --host-bucket=$AWS_HOST s3://ood-config/group_vars/all CRI_XCBC/group_vars/prod
-
s3cmd get --force -r --host=$AWS_HOST --host-bucket=$AWS_HOST s3://cheaha-cloud-ansible-files/ ansible/files/
artifacts
:
...
...
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