Commit de34443c authored by Mike Ishida's avatar Mike Ishida
Browse files

Testing GitLab CI with deployment to Azure AppService using dpl.

parent a9ee523c
Pipeline #11587377 passed with stages
in 4 minutes and 48 seconds
image: "ubuntu:14.04"
stages:
- deploy
- pdf
build:
deploy:
stage: deploy
before_script:
- apt-get update && apt-get install -y software-properties-common curl git
- add-apt-repository -y ppa:brightbox/ruby-ng && apt-get update && apt-get install -y ruby2.4
- gem install dpl
script:
- ruby -v
- dpl --provider=AzureWebApps --verbose
pdf:
stage: pdf
before_script:
- apt-get update && apt-get install -y software-properties-common curl
- add-apt-repository -y ppa:openjdk-r/ppa && add-apt-repository -y ppa:brightbox/ruby-ng && apt-get update && apt-get install -y openjdk-8-jdk ruby2.4
- gem install --pre asciidoctor-pdf
......
......@@ -17,10 +17,10 @@ namespace MySampleWebApi.Controllers
{
private static Product[] products = new Product[] {
new Product() { id = 100, ProdCd = "AAA", ProdName = "Product A", Price = 123.45m, CreatedAt = DateTime.Now },
new Product() { id = 101, ProdCd = "BBBB", ProdName = "Product B", Price = 98.99m, CreatedAt = DateTime.Now },
new Product() { id = 102, ProdCd = "CCCC", ProdName = "Product C", Price = 12.0m, CreatedAt = DateTime.Now },
new Product() { id = 103, ProdCd = "DDDDD", ProdName = "Product D", Price = 3.45m, CreatedAt = DateTime.Now },
new Product() { id = 100, ProdCd = "AAA", ProdName = "商品 A", Price = 123.45m, CreatedAt = DateTime.Now },
new Product() { id = 101, ProdCd = "BBBB", ProdName = "商品 B", Price = 98.99m, CreatedAt = DateTime.Now },
new Product() { id = 102, ProdCd = "CCCC", ProdName = "商品 C", Price = 12.0m, CreatedAt = DateTime.Now },
new Product() { id = 103, ProdCd = "DDDDD", ProdName = "商品 D", Price = 3.45m, CreatedAt = DateTime.Now },
};
......
......@@ -16,9 +16,9 @@ namespace MySampleWebApi.Controllers
public class UsersController : Controller
{
private static User[] users = new User[] {
new User(){ id = 1, Name="User 1", Email = "user1@hoge.com", CreatedAt=DateTime.Now },
new User(){ id = 2, Name="User 2", Email = "user2@hoge.com", CreatedAt=DateTime.Now },
new User(){ id = 3, Name="User 3", Email = "user3@hoge.com", CreatedAt=DateTime.Now },
new User(){ id = 1, Name="ユーザー 1", Email = "user1@hoge.com", CreatedAt=DateTime.Now },
new User(){ id = 2, Name="ユーザー 2", Email = "user2@hoge.com", CreatedAt=DateTime.Now },
new User(){ id = 3, Name="ユーザー 3", Email = "user3@hoge.com", CreatedAt=DateTime.Now },
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment