This repository has been archived on 2023-10-28. You can view files and clone it, but cannot push or open issues or pull requests.
2020-11-26 03:39:14 +01:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
2020-11-26 04:06:24 +01:00
|
|
|
name: test-build
|
2020-11-26 03:39:14 +01:00
|
|
|
|
|
|
|
platform:
|
|
|
|
os: linux
|
|
|
|
arch: amd64
|
|
|
|
|
|
|
|
steps:
|
2020-11-26 03:52:47 +01:00
|
|
|
- name: sed-tgt-version
|
|
|
|
pull: always
|
|
|
|
image: bash
|
|
|
|
commands:
|
|
|
|
- sed -i 's/2.1.519/2.1.811/' global.json
|
|
|
|
|
2020-11-26 04:01:28 +01:00
|
|
|
- name: debug
|
2020-11-26 03:39:14 +01:00
|
|
|
pull: always
|
2020-11-26 04:06:24 +01:00
|
|
|
image: mcr.microsoft.com/dotnet/core/sdk:2.1-alpine
|
2020-11-26 03:52:47 +01:00
|
|
|
depends_on:
|
|
|
|
- sed-tgt-version
|
2020-11-26 03:39:14 +01:00
|
|
|
commands:
|
|
|
|
- dotnet restore
|
|
|
|
- dotnet build .
|
|
|
|
|
2020-11-26 04:07:52 +01:00
|
|
|
- name: sed-back
|
|
|
|
pull: always
|
|
|
|
image: bash
|
|
|
|
depends_on:
|
|
|
|
- debug
|
|
|
|
commands:
|
|
|
|
- sed -i 's/2.1.811/2.1.519/' global.json
|
|
|
|
|
2020-11-26 04:01:28 +01:00
|
|
|
- name: release
|
2020-11-26 03:59:08 +01:00
|
|
|
pull: always
|
2020-11-26 03:45:34 +01:00
|
|
|
image: mcr.microsoft.com/dotnet/aspnet:2.1
|
2020-11-26 04:06:24 +01:00
|
|
|
depends_on:
|
2020-11-26 04:07:52 +01:00
|
|
|
- sed-back
|
2020-11-26 03:45:34 +01:00
|
|
|
commands:
|
2020-11-26 03:57:01 +01:00
|
|
|
- dotnet clean
|
2020-11-26 03:45:34 +01:00
|
|
|
- dotnet restore
|
2020-11-26 03:55:06 +01:00
|
|
|
- dotnet publish -c Release
|
2020-11-26 03:45:34 +01:00
|
|
|
|