Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FoundationalDataProducts
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
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
aflab
astrogeology
FoundationalDataProducts
Commits
e3f70eac
Commit
e3f70eac
authored
2 years ago
by
Laura, Jason R
Browse files
Options
Downloads
Patches
Plain Diff
Adds CI mirroring and fixes code.json for main
parent
e99e3ee9
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+28
-0
28 additions, 0 deletions
.gitlab-ci.yml
code.json
+46
-4
46 additions, 4 deletions
code.json
with
74 additions
and
4 deletions
.gitlab-ci.yml
0 → 100644
+
28
−
0
View file @
e3f70eac
image
:
ubuntu:18.04
clone_github
:
stage
:
deploy
before_script
:
-
apt-get update -y && apt-get install openssh-client -y
-
apt install git -y
-
eval $(ssh-agent -s)
-
echo "$GIT_SSH_PRIVATE_KEY" | openssl base64 -A -d | ssh-add -
-
mkdir -p ~/.ssh
-
chmod 700 ~/.ssh
-
ssh-keyscan $GIT_LAB_HOST >> ~/.ssh/known_hosts
-
chmod 644 ~/.ssh/known_hosts
-
git config --global user.name "${GIT_USER_NAME}"
-
git config --global user.email "${GIT_USER_EMAIL}"
-
ssh "git@$GIT_LAB_HOST"
script
:
-
echo $SOURCE_REPOSITORY
-
git config --global http.sslVerify
false
# Epic....
-
rm -rf FoundationalDataProducts
# Needed to allow multiple CI runs
-
git clone --mirror $SOURCE_REPOSITORY FoundationalDataProducts
-
cd FoundationalDataProducts
-
git remote remove origin
-
git remote add origin $DESTINATION_REPOSITORY
-
git push -f --prune --all
-
git push -f --prune --tags
only
:
-
branches
This diff is collapsed.
Click to expand it.
code.json
+
46
−
4
View file @
e3f70eac
[
{
"name"
:
"fdp_website"
,
"name"
:
"FoundationalDataProducts"
,
"organization"
:
"U.S. Geological Survey"
,
"description"
:
"Git repository containing the Foundational Data Products (FDP) website code and content."
,
"version"
:
"main"
,
"status"
:
"Development"
,
"permissions"
:
{
"usageType"
:
"openSource"
,
"licenses"
:
[
{
"name"
:
"Public Domain, CC0-1.0"
,
"URL"
:
"https://code.usgs.gov/astrogeology/FoundationalDataProducts/-/raw/main/LICENSE.md"
}
]
},
"homepageURL"
:
"https://code.usgs.gov/astrogeology/FoundationalDataProducts/"
,
"downloadURL"
:
"https://code.usgs.gov/astrogeology/FoundationalDataProducts/-/archive/main/FoundationalDataProducts-main.zip"
,
"disclaimerURL"
:
"https://code.usgs.gov/astrogeology/FoundationalDataProducts/-/raw/main/DISCLAIMER.md"
,
"repositoryURL"
:
"https://code.usgs.gov/astrogeology/FoundationalDataProducts.git"
,
"vcs"
:
"git"
,
"laborHours"
:
120
,
"tags"
:
[
"Planetary"
,
"Spatial Data Infrastructure"
,
"Foundational Data Products"
],
"languages"
:
[
"Go"
],
"contact"
:
{
"name"
:
"Jason Laura"
,
"email"
:
"jlaura@usgs.gov"
},
"date"
:
{
"metadataLastUpdated"
:
"2023-01-25"
}
},{
"name"
:
"FoundationalDataProducts"
,
"organization"
:
"U.S. Geological Survey"
,
"description"
:
"Git repository containing the Foundational Data Products (FDP) website code and content."
,
"version"
:
"1.0.0"
,
...
...
@@ -10,15 +52,15 @@
"licenses"
:
[
{
"name"
:
"Public Domain, CC0-1.0"
,
"URL"
:
"https://code.usgs.gov/astrogeology/FoundationalDataProducts/-/
blob
/1.0.0/LICENSE.md"
"URL"
:
"https://code.usgs.gov/astrogeology/FoundationalDataProducts/-/
raw
/1.0.0/LICENSE.md"
}
]
},
"homepageURL"
:
"https://code.usgs.gov/astrogeology/FoundationalDataProducts/"
,
"downloadURL"
:
"https://code.usgs.gov/astrogeology/FoundationalDataProducts/-/archive/1.0.0/FoundationalDataProducts-1.0.0.zip"
,
"disclaimerURL"
:
"https://code.usgs.gov/astrogeology/FoundationalDataProducts/-/
blob
/1.0.0/DISCLAIMER.md"
,
"repositoryURL"
:
"https://code.usgs.gov/astrogeology/FoundationalDataProducts
/
"
,
"disclaimerURL"
:
"https://code.usgs.gov/astrogeology/FoundationalDataProducts/-/
raw
/1.0.0/DISCLAIMER.md"
,
"repositoryURL"
:
"https://code.usgs.gov/astrogeology/FoundationalDataProducts
.git
"
,
"vcs"
:
"git"
,
"laborHours"
:
120
,
...
...
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