Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ZOXEXIVO committed Jul 13, 2022
1 parent 678570a commit 4302cd1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 3 additions & 1 deletion .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,16 @@ steps:

- name: clear
image: docker:dind
depends_on: [ build_web ]
depends_on: [ build_web, build_jobs ]
privileged: true
failure: ignore
volumes:
- name: docker_sock
path: /var/run/docker.sock
commands:
- docker stop geen-web || true
- docker stop geen-jobs || true
- docker rm geen-web || true
- docker rm geen-jobs || true

- name: deploy
Expand Down
4 changes: 0 additions & 4 deletions build/Jobs.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
ARG BUILD_NUMBER

FROM geen-frontend:$BUILD_NUMBER as frontend

FROM mcr.microsoft.com/dotnet/sdk:6.0.300-alpine3.14-amd64 AS build

WORKDIR /app
Expand All @@ -10,8 +8,6 @@ COPY ./src/Backend/ ./

WORKDIR /app/Geen.Jobs

COPY --from=frontend /app/dist wwwroot

RUN dotnet publish -c Release -o /app/out -r linux-musl-x64 --self-contained true /p:PublishReadyToRun=true /p:PublishSingleFile=true --packages packages

FROM mcr.microsoft.com/dotnet/runtime-deps:6.0.5-alpine3.14-amd64 AS runtime
Expand Down

0 comments on commit 4302cd1

Please sign in to comment.