38 lines
920 B
YAML
38 lines
920 B
YAML
---
|
||
kind: pipeline
|
||
type: exec
|
||
name: default
|
||
|
||
platform:
|
||
os: linux
|
||
arch: amd64
|
||
|
||
clone:
|
||
# убрано так как сейчас не тестим ничего предварительно а сразу тянем в директорию
|
||
disable: true
|
||
|
||
steps:
|
||
- name: pull into the folduh
|
||
commands:
|
||
- cd /usr/share/$DRONE_REPO_NAME
|
||
- git pull
|
||
- name: build
|
||
environment:
|
||
DOTNET_CLI_TELEMETRY_OPTOUT: 1
|
||
commands:
|
||
- cd /usr/share/$DRONE_REPO_NAME
|
||
- dotnet build
|
||
- name: recreate dist folder
|
||
commands:
|
||
- rm -rf /usr/share/$DRONE_REPO_NAME/dist
|
||
- mkdir -p /usr/share/$DRONE_REPO_NAME/dist
|
||
- mv -f /usr/share/$DRONE_REPO_NAME/bin/Debug/net6.0/* /usr/share/$DRONE_REPO_NAME/dist
|
||
- name: docker-compose-rebuild
|
||
commands:
|
||
- cd /usr/share/$DRONE_REPO_NAME
|
||
- docker compose up -d --build
|
||
- name: cleanup
|
||
commands:
|
||
- rm -rf /usr/share/$DRONE_REPO_NAME/bin /usr/share/$DRONE_REPO_NAME/obj
|
||
|