Revert "Replace with gitea actions"
This reverts commit 70f47b0dd1.
# Conflicts:
# .gitea/workflows/build.yaml
# vegasco-server.sln
This commit is contained in:
66
.drone.yml
Normal file
66
.drone.yml
Normal file
@@ -0,0 +1,66 @@
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: Pipeline
|
||||
|
||||
trigger:
|
||||
event:
|
||||
include:
|
||||
- push
|
||||
- pull_request
|
||||
- custom
|
||||
|
||||
steps:
|
||||
|
||||
- name: compile
|
||||
image: mcr.microsoft.com/dotnet/sdk:8.0-alpine
|
||||
environment:
|
||||
CI_WORKSPACE: "/drone/src"
|
||||
commands:
|
||||
- dotnet build
|
||||
volumes:
|
||||
- name: dockersock
|
||||
path: /var/run
|
||||
|
||||
- name: test
|
||||
image: quay.io/testcontainers/dind-drone-plugin
|
||||
environment:
|
||||
CI_WORKSPACE: "/drone/src"
|
||||
settings:
|
||||
build_image: mcr.microsoft.com/dotnet/sdk:8.0-alpine
|
||||
cmd:
|
||||
- dotnet test --no-build
|
||||
volumes:
|
||||
- name: dockersock
|
||||
path: /var/run
|
||||
depends_on:
|
||||
- compile
|
||||
|
||||
- name: Telegram notification
|
||||
image: appleboy/drone-telegram
|
||||
settings:
|
||||
token:
|
||||
from_secret: telegram_token
|
||||
to:
|
||||
from_secret: telegram_user_id
|
||||
when:
|
||||
status:
|
||||
- success
|
||||
- failure
|
||||
depends_on:
|
||||
- compile
|
||||
- test
|
||||
- docker build and push
|
||||
- deploy to test
|
||||
- deploy to prod
|
||||
|
||||
services:
|
||||
- name: docker
|
||||
image: docker:dind
|
||||
privileged: true
|
||||
volumes:
|
||||
- name: dockersock
|
||||
path: /var/run
|
||||
|
||||
volumes:
|
||||
- name: dockersock
|
||||
temp: { }
|
||||
Reference in New Issue
Block a user