-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsharpdev.yml
33 lines (27 loc) · 1.14 KB
/
sharpdev.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
version: 0.1
envfile: .env
values:
SECRET: '{\"secret\":\"Secret123\"}'
scripts:
build: go build -o ./internal/sharpcd ./src
revert: git revert ${SHARP_ARG_1}..HEAD
list: git branch
archive: |
git tag archive/${SHARP_ARG_1} ${SHARP_ARG_1} &&
git branch -d ${SHARP_ARG_1}
server: |
sudo apt-get install -y lsof &&
sudo kill $(sudo lsof -t -i:5666) > /dev/null 2>&1 || true &&
sharpdev build &&
sudo ./internal/sharpcd server
client: |
sudo docker-compose -f "./internal/sharpcd-data/docker/external_task/docker-compose.yml" down &&
$(sudo docker volume rm memes) > /dev/null 2>&1 || true &&
$(sudo docker network rm memes) > /dev/null 2>&1 || true &&
sharpdev build &&
./internal/sharpcd --secret Secret123
job: curl -k -X POST -d SECRET https://localhost:5666/api/job/${SHARP_ARG_1}
logs: curl -k -X POST -d SECRET https://localhost:5666/api/logs/${SHARP_ARG_1}
filter: ./internal/sharpcd addfilter https://raw.githubusercontent.com/Sharpz7/
remove: ./internal/sharpcd removefilter https://raw.githubusercontent.com/Sharpz7/
alljobs: curl -k -X POST -d SECRET https://localhost:5666/api/jobs