-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: dockerfile for CI, azure pipeline definition, signing only on r…
…elease
- Loading branch information
1 parent
e61506d
commit 3cf735e
Showing
4 changed files
with
49 additions
and
3 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
.dockerignore | ||
.env | ||
.git | ||
.gitignore | ||
.vs | ||
.vscode | ||
docker-compose.yml | ||
docker-compose.*.yml | ||
*/bin | ||
*/Dockerfile | ||
*/obj |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
FROM microsoft/dotnet:2.1-sdk | ||
WORKDIR /src | ||
|
||
COPY FluentTimeSpan/FluentTimeSpan.sln ./ | ||
COPY FluentTimeSpan/FluentTimeSpan/*.csproj ./FluentTimeSpan/ | ||
COPY FluentTimeSpan/FluentTimeSpan.Test/*.csproj ./FluentTimeSpan.Test/ | ||
|
||
RUN dotnet restore | ||
|
||
COPY . . | ||
WORKDIR /src/FluentTimeSpan/FluentTimeSpan.Test | ||
|
||
RUN dotnet build | ||
RUN dotnet test |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Docker image | ||
# Build a Docker image to deploy, run, or push to a container registry. | ||
# Add steps that use Docker Compose, tag images, push to a registry, run an image, and more: | ||
# https://docs.microsoft.com/azure/devops/pipelines/languages/docker | ||
|
||
pool: | ||
vmImage: 'Ubuntu 16.04' | ||
|
||
variables: | ||
imageName: 'fluent-time-span-ci-image:$(build.buildId)' | ||
|
||
steps: | ||
- script: docker build -f Dockerfile-ci -t $(imageName) . | ||
displayName: 'docker build' |