Commit e3f70eac authored by Laura, Jason R's avatar Laura, Jason R
Browse files

Adds CI mirroring and fixes code.json for main

parent e99e3ee9
Loading
Loading
Loading
Loading

.gitlab-ci.yml

0 → 100644
+28 −0
Original line number Diff line number Diff line
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
+46 −4
Original line number Diff line number Diff line
[
  {
    "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,