This repository has been archived on 2024-01-29. You can view files and clone it, but cannot push or open issues or pull requests.
distributed_system_coursework/.drone.yml

31 lines
714 B
YAML
Raw Normal View History

2024-01-08 14:24:20 +00:00
---
kind: pipeline
type: exec
name: Build and deploy
steps:
- name: Build Presentation
commands:
- cd presentation
- marp presentation.md -o index.html
- cp * /home/andr3/services/notes/presentation
2024-01-19 18:45:43 +00:00
- name: Create release
2024-01-19 18:50:22 +00:00
environment:
TOKEN:
from_secret: token
2024-01-19 18:45:43 +00:00
commands:
- cp lib/server.ex .
- zip server.zip server.ex README.md
2024-01-19 18:46:24 +00:00
- tea login add --url https://git.andr3h3nriqu3s.com --token "$TOKEN"
2024-01-19 18:45:43 +00:00
- tea r rm -y latest || echo "Release not found"
- tea r c --title "Latest" --asset "README.md" --asset "lib/paxos.ex" --asset "lib/server.ex" --asset "server.zip" latest
2024-01-08 14:24:20 +00:00
trigger:
branch:
- main
node:
lights: builder