This repository has been archived on 2023-06-30. You can view files and clone it, but cannot push or open issues or pull requests.
2chBackAPI/.drone.yml
root f7a3d9f065
Some checks failed
continuous-integration/drone/push Build is failing
docker compose into drone-yml
2022-10-17 22:36:17 -04:00

35 lines
805 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
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
commands:
- cd /usr/share/$DRONE_REPO_NAME
- dotnet build
- name: mv
commands:
- mkdir -p /usr/share/$DRONE_REPO_NAME/dist
- mv /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