Compare commits

...
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.

17 Commits

Author SHA1 Message Date
surtur 3a155798a9
rm: get rid of unused launch settings
[skip ci]
2020-12-02 03:08:43 +01:00
surtur 3f775a110b
fix: clean build after restore
All checks were successful
continuous-integration/drone/push Build is passing
* this fixes occasional situation when NuGets have not been restored yet
  but the clean build already running required them, which resulted a
  failed build
2020-11-29 21:08:11 +01:00
surtur 42c6dfd3ba
chore: update make kaniko
All checks were successful
continuous-integration/drone/push Build is passing
* skip ci
2020-11-27 20:05:30 +01:00
surtur 1cc3df6619
chore: rm debug ls call
skip ci
2020-11-27 18:58:48 +01:00
surtur befe7880fc
revert: set kaniko context back to "."
skip ci
2020-11-27 18:58:27 +01:00
surtur 15d7de1996
chore: add make kaniko
* skip ci
2020-11-27 18:58:06 +01:00
surtur 5ed341f4ae
refactor: merge pipelines back
Some checks reported errors
continuous-integration/drone/push Build was killed
2020-11-27 17:13:27 +01:00
surtur 732cd7d717
chore: don't wait and build
Some checks reported errors
continuous-integration/drone/push Build was killed
2020-11-27 17:12:39 +01:00
surtur 11a9ab07ab
revert: kaniko don't give a **** about relpaths
Some checks reported errors
continuous-integration/drone/push Build was killed
2020-11-27 17:11:08 +01:00
surtur a581457326
debug: see where we are
Some checks reported errors
continuous-integration/drone/push Build was killed
2020-11-27 16:23:28 +01:00
surtur 1ef9a6831f
chore: try /src workspace for kaniko
Some checks reported errors
continuous-integration/drone/push Build was killed
2020-11-27 15:58:50 +01:00
surtur 11d796f0dd
chore: add /src context for kaniko
Some checks reported errors
continuous-integration/drone/push Build was killed
2020-11-27 15:30:21 +01:00
surtur 4b58c3f584
fix: rel paths are nicer to kaniko
Some checks reported errors
continuous-integration/drone/push Build was killed
2020-11-27 15:22:18 +01:00
surtur 63601f7f47
chore: run wherever
Some checks reported errors
continuous-integration/drone/push Build was killed
2020-11-27 15:16:57 +01:00
surtur 54fb45ec65
refactor: effectively revert 907a470 and 63bde0a
Some checks reported errors
continuous-integration/drone/push Build was killed
2020-11-27 15:06:42 +01:00
surtur eece1e3dba
chore: move dockerbuilds to a separate pipeline
Some checks failed
continuous-integration/drone/push Build is failing
* and run them on the main runner
2020-11-27 14:52:23 +01:00
surtur 907a4702d8
chore: give kaniko relative paths in Dockerfile
Some checks reported errors
continuous-integration/drone/push Build was killed
2020-11-27 14:47:03 +01:00
5 changed files with 13 additions and 21 deletions

View File

@ -18,11 +18,9 @@ steps:
- name: release
pull: always
image: mcr.microsoft.com/dotnet/core/sdk:2.1-alpine
depends_on:
- debug
commands:
- dotnet clean
- dotnet restore
- dotnet clean
- dotnet publish -c Release
- name: docker-release-build

View File

@ -3,12 +3,14 @@ FROM mcr.microsoft.com/dotnet/core/sdk:2.1-alpine
COPY . /src
WORKDIR /src
RUN dotnet --version && dotnet --info
RUN dotnet clean
RUN dotnet restore
RUN dotnet clean
RUN dotnet build -c Release
FROM mcr.microsoft.com/dotnet/aspnet:2.1
# debug drone
RUN pwd
COPY --from=0 /src/bin/Release/netcoreapp2.1/publish/ App/
WORKDIR /App
ENV ASPNETCORE_ENVIRONMENT=Release

View File

@ -4,8 +4,8 @@ COPY . /src
WORKDIR /src
RUN dotnet --version && dotnet --info
RUN dotnet clean
RUN dotnet restore
RUN dotnet clean
RUN dotnet build -c Debug

View File

@ -5,6 +5,9 @@ dfiledev = $(dfile).dev
lport = 8000
lportdev = 8001
CC = dotnet
wdir = /src
krelease = docker run --rm -it -w=$(wdir) -v $$PWD:$(wdir) gcr.io/kaniko-project/executor -f=$(dfile) -c=$(wdir) --use-new-run --snapshotMode=redo --no-push
kdebug = docker run --rm -it -w=$(wdir) -v $$PWD:$(wdir) gcr.io/kaniko-project/executor -f=$(dfiledev) -c=$(wdir) --use-new-run --snapshotMode=redo --no-push
dev: restore build run
@ -17,7 +20,7 @@ build:
run:
$(CC) run .
releasebuild: clean restore
releasebuild: restore clean
$(CC) publish -c Release
dockerbuild:
@ -44,6 +47,10 @@ dockerdevrun:
@echo ======================
docker run --rm -p $(lportdev):5000 $(dtagdev)
kaniko:
$(krelease)
$(kdebug)
dockerdev: dockerdevbuild dockerdevrun
dockertest: dockerdevbuild dockerbuild

View File

@ -1,20 +1,5 @@
{
"iisSettings": {
"windowsAuthentication": false,
"anonymousAuthentication": true,
"iisExpress": {
"applicationUrl": "http://localhost:47798",
"sslPort": 44311
}
},
"profiles": {
"IIS Express": {
"commandName": "IISExpress",
"launchBrowser": true,
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
"pwt_0x01_ng": {
"commandName": "Project",
"launchBrowser": false,