This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// access token must have following permissions (scope): license:write, user:read, user:write | |
$PERSONAL_ACCESS_TOKEN = "YOUR_PERSONAL_ACCESS_TOKEN"; | |
function PostRequest($url, $body) | |
{ | |
$headers = array( | |
"Authorization: Bearer " . $GLOBALS['PERSONAL_ACCESS_TOKEN'], | |
"Content-Type: application/json" | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.IO; | |
using System.Security.Cryptography; | |
using Microsoft.IdentityModel.Tokens; | |
using Org.BouncyCastle.Crypto; | |
using Org.BouncyCastle.Crypto.Parameters; | |
using Org.BouncyCastle.OpenSsl; | |
using Org.BouncyCastle.Security; | |
using Org.BouncyCastle.Asn1.Pkcs; | |
namespace MyWebApi.Services |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM mcr.microsoft.com/dotnet/core/aspnet:2.2 | |
WORKDIR /app | |
COPY bin/Release/PublishOutput/ ./ | |
CMD export ASPNETCORE_URLS=http://*:$PORT && dotnet MyAwesomeApp.dll |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Official docker image. | |
image: docker:latest | |
services: | |
- docker:dind | |
variables: | |
DOCKER_DRIVER: overlay | |
before_script: |