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

82 lines
2.1 KiB
YAML
Raw Normal View History

2023-11-03 12:09:31 +00:00
---
kind: pipeline
type: exec
name: Build and deploy
steps:
2023-12-01 17:55:41 +00:00
- name: Build Cw1
commands:
- cd firstcw/cw
- pdflatex cw.tex
# Prepare bib
- /usr/bin/vendor_perl/biber cw
# Compile twice for the table of contents and for bib text
- pdflatex cw.tex
- pdflatex cw.tex
- cd -
2023-11-03 12:09:31 +00:00
2023-12-01 17:55:41 +00:00
- name: Build Cw2
commands:
- cd secondcw/cw
- pdflatex cw.tex
# Prepare bib
- /usr/bin/vendor_perl/biber cw
# Compile twice for the table of contents and for bib text
- pdflatex cw.tex
- pdflatex cw.tex
- cd -
2023-11-03 12:09:31 +00:00
2023-12-01 17:55:41 +00:00
# - name: Build Report
# commands:
# - cd report
# - cp ../upds-1/UPDS-content.tex UPDS-1-content.tex
# - cp ../upds-2/UPDS-content.tex UPDS-2-content.tex
# - pdflatex report.tex
# # Prepare bib
# - /usr/bin/vendor_perl/biber report
# # Compile twice for the table of contents and for bib text
# - pdflatex report.tex
# - cd -
#
# - name: Generate text
# commands:
# - pnpm i
# - pnpm ts-node main.ts report/report.tex
2023-11-03 12:09:31 +00:00
2023-12-01 17:55:41 +00:00
- name: gitea_release
environment:
TOKEN:
from_secret: token
commands:
- tea login add --url https://git.andr3h3nriqu3s.com --token "$TOKEN"
- tea r rm -y current || echo "Release not found"
- tea r c --title "Latest" --asset firstcw/cw/cw.pdf --asset secondcw/cw/cw.pdf latest
2023-11-03 12:09:31 +00:00
2023-12-01 17:55:41 +00:00
- name: Remove current on failure
environment:
TOKEN:
from_secret: token
commands:
- tea login add --url https://git.andr3h3nriqu3s.com --token "$TOKEN"
- tea r rm -y current || echo "Release not found"
trigger:
status:
- failure
when:
status:
- failure
# - name: latest
# environment:
# TOKEN:
# from_secret: token
# commands:
# - tea r rm -y "3rd-metting" || echo "Release not found"
# - tea r c --title "Last Metting Report" --asset report/report.pdf --asset upds-1/UPDS12-1.pdf --asset upds-2/UPDS12-2.pdf "3rd-metting"
2023-11-03 12:09:31 +00:00
trigger:
branch:
- main
node:
lights: builder