diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000000000000000000000000000000000000..95a2af40a5707ffe31fbad8635585e829d8176ba --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,28 @@ +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 diff --git a/code.json b/code.json index 3e150fdb91f18a37d520991acd717d74d0ab4a6c..22113a786ba4cf8d1c276edbc31e1219f027e9c6 100644 --- a/code.json +++ b/code.json @@ -1,6 +1,48 @@ [ { - "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,