Microsoft Azure PlayFab logo
    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Add-ons
    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA
  • Runs on PlayFab
  • Pricing
    • Blog
    • Forums
    • Contact us
  • Sign up
  • Sign in
  • Ask a question
  • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges
  • Home /
  • Feature Requests /
avatar image

me@mikevanriel.com suggested an idea · Jun 12, 2016 at 09:41 AM · CloudScript

GitLab integration for CloudScript Content Management

I saw that someone else requested support for BitBucket to host the CloudScript files; I would additionally like to request support for hosting the CloudScript files at GitLab (http://gitlab.com).

thub.nodes.view.add-new-comment
mouldi nouri
Montana Tuska
Ben
lisa
alessandro
liyuehai
Esteban Feldman
rnakrani
dominiquecanzeri
marcos
Chris Gliddon
Ankit
giorgiotino

People who like this

13 Show 1
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image mouldi nouri · Apr 04, 2017 at 02:51 PM 0
Share

Me too i would love to deploy my serverSide code and still keep it from others t access it through github so please take a look at this if you have time cheers ^^

4 comments

· Add your reply
avatar image

Dylan Hunt commented · Jul 05, 2017 at 06:25 AM

Gahh no votes left, but YES!! They are famous for competing insanely with GitHub on every level. Best of all (for playfab devs), they are pros at migration and API's. You can even import a project from GitHub in 1 click. They make everything easy.

* Free, unlimited 10gb repos (GitHub is 1gb per repo)

* Both private and public (GitHub is public only, then charges for private)

* You can host your own server (complicated, but has many benefits, including unlimited storage + pipelines)

* They have their own native pipeline. So I could build a Unity game, push it, have the pipeline push it straight to Steam.

They are godsend, and recently (today) transferred everything to GitLab to prep to cancel my private github monthly fee.

thub.nodes.view.add-new-comment
Ben
John Peterson

People who like this

2 Show 2
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Dylan Hunt · Jul 05, 2017 at 06:25 AM 0
Share

(Even NASA uses them)

avatar image Dylan Hunt · Jul 05, 2017 at 06:42 AM 0
Share

(doh, can't edit)

Gah, actually ... I realized that I can move ALL of my files to GitLab ... EXCEPT for my cloudscript, which has secret keys on it. If I cancel my GitHub private subscription, it either gets exposed or I need to delete it (and cloudscript without versioning sort of sucks).

Alternately, I can simply not use secret keys for my api, but ... eh... my game's already on piratebay, don't want to spoonfeed their progression lol.

I'd much rather spend money on PlayFab monthly than GitHub. I wish this feature would come into existence soon :)

avatar image

Montana Tuska commented · Sep 24, 2017 at 01:40 AM

I'm gonna bump this up so that PlayFab can move this to the Add-on Marketplace forum that I just realize existed. +1 on Gitlab though.

thub.nodes.view.add-new-comment
Esteban Feldman

People who like this

1 Show 0
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image

rnakrani commented · Dec 19, 2018 at 09:33 PM

This would be very helpful. GitHub doesn't have private repositories in a free tier, but GitLab does, and all of our other web based stuff is in GitLab, so it would make it convenient. I am guessing this is going to be hard to get PlayFab to do since they are now owned by Microsoft and Microsoft also has or will be purchasing GitHub.

As it stands the ability to use GitHub is useless to us, but the ability to use GitLab would be very beneficial.

thub.nodes.view.add-new-comment

People who like this

0 Show 0
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image

Tom Johnstone commented · Aug 24, 2020 at 02:30 AM

If anyone's interested this is how we setup CloudScript source control with GitLab:

You just need to set the following variables in your CI/CD settings: PLAYFAB_TITLE_ID_RETAIL, PLAYFAB_TITLE_ID_SANDBOX, PLAYFAB_SECRET_KEY, CI_PRIVATE_TOKEN

workflow:
    rules:
        - if: $CI_COMMIT_TAG
          when: never
        - when: always
    
stages:
    - deploy

.DeployToPlayFab: &DeployToPlayFab |
    $ErrorActionPreference = "Stop"

    $apiHeaders = @{ 'X-SecretKey'=$PLAYFAB_SECRET_KEY }
    
    $body = @{
        CustomTags = @{
            BranchName = $CI_COMMIT_REF
            CommitSha = $CI_COMMIT_SHA
        }
        Files = @()
        Publish = $false
    }
    
    Get-ChildItem -Filter *.js -Recurse | % {
        $body.Files += @{
            FileContents = Get-Content -Path $_.FullName -Raw | Out-String
            Filename = $_.Name
        }
    }
    
    $body = $body | ConvertTo-Json
    
    if ($CI_COMMIT_REF -eq "master")
    {
        $playFabTitleId = $PLAYFAB_TITLE_ID_RETAIL
    }
    else
    {
        $playFabTitleId = $PLAYFAB_TITLE_ID_SANDBOX
    }
    
    $apiUrl = "https://$playFabTitleId.playfabapi.com/Admin/UpdateCloudScript"
    Write-Output "apiUrl > $apiUrl"
    $result = Invoke-RestMethod -Headers $apiHeaders -Uri $apiUrl -Method POST -ContentType 'application/json' -Body $body
    $result = $result | ForEach-Object { $_ }
    if ($result.code -eq 200)
    {
        $version = $result.data.Version
        Write-Output "version > $version"
        $revision = $result.data.Revision
        Write-Output "revision > $revision"
        
        $tagName = "$PLAYFAB_TITLE_ID-rev$revision"
        $apiUrl = "$CI_API_V4_URL/projects/$CI_PROJECT_ID/repository/tags?tag_name=$tagName&ref=$CI_COMMIT_SHA"
        Write-Output "apiUrl > $apiUrl"
        $apiHeaders = @{ 'PRIVATE-TOKEN'='$CI_PRIVATE_TOKEN' }
        $result = Invoke-RestMethod -Headers $apiHeaders -Uri $apiUrl -Method POST
    }
    else
    {
        Write-Output "code > $result.code"
        Write-Output "error > $result.error"
    }

deploy:
    stage: deploy
    when: manual
    script:
        - *DeployToPlayFab
thub.nodes.view.add-new-comment

People who like this

0 Show 0
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Navigation

Spaces
  • General Discussion
  • API and SDK Questions
  • Feature Requests
  • PlayStream
  • Bugs
  • Add-on Marketplace
  • LiveOps
  • Your Opinion Counts

    We would love to know what you need. Submit your ideas and upvote others to help us prioritize.

    Sign in to post a new idea

    Follow

    Follow This Idea

    3 People are following this .

    avatar image avatar image avatar image

    Related Ideas

    Edit CloudScript in Unity

    Internal code editor for cloud scripting

    cloudscript tasks on player segments should tally OKs and Fails

    Add PurchaseItem to the Server API

    Add ability to alert developers on Cloud Script Errors

    Adding or removing Friend friend with a list (and one request) instead of one by one

    Add GetContentList to server API (as admin API)

    GetStoreItems In CloudScript

    ModifyItemUses with multiple items

    Ability to update CustomData in multiple inventory items using only one API call.

    PlayFab

    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Runs on PlayFab
    • Pricing

    Solutions

    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA

    Engineers

    • Documentation
    • Quickstarts
    • API Reference
    • SDKs
    • Usage Limits

    Resources

    • Forums
    • Contact us
    • Blog
    • Service Health
    • Terms of Service
    • Attribution

    Follow us

    • Facebook
    • Twitter
    • LinkedIn
    • YouTube
    • Sitemap
    • Contact Microsoft
    • Privacy & cookies
    • Terms of use
    • Trademarks
    • Safety & eco
    • About our ads
    • © Microsoft 2020
    • Anonymous
    • Sign in
    • Create
    • Ask a question
    • Create an article
    • Post an idea
    • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Explore
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges