Skip to content

Instantly share code, notes, and snippets.

@rm--
Created July 7, 2023 08:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rm--/24205a9ef5fbe6ee780d33b31a113f28 to your computer and use it in GitHub Desktop.
Save rm--/24205a9ef5fbe6ee780d33b31a113f28 to your computer and use it in GitHub Desktop.
curl post here doc
curl -0 -X POST -u $STUDIO_USERNAME:$STUDIO_PASSWORD $SERVICE_URL/studio/api/2/repository/add_remote \
-H 'Content-Type: application/json; charset=utf-8' \
--resolve $CONTAINER_FQDN_AUTHORING:443:$CONTAINER_URL_AUTHORING \
--data-binary @- << EOF
{
        "siteId": "$SITE",
        "remoteName": "$REMOTE_NAME",
        "remoteUrl": "$GIT_REPO",
        "authentication_type": "basic",
        "remote_username": "$GIT_USERNAME",
        "remote_password": "$GIT_PASSWORD"
}
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment