2021-10-31 18:56:34 +00:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: build-arm64
|
|
|
|
|
|
|
|
platform:
|
|
|
|
os: linux
|
|
|
|
arch: arm64
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: compile binaries
|
|
|
|
image: golang:alpine
|
|
|
|
commands:
|
|
|
|
- apk --no-cache add build-base
|
|
|
|
- go vet -v ./checker
|
|
|
|
- go vet -v ./token-validator
|
|
|
|
- cd ./pkg/minichecker/cmd && go vet -v . && cd -
|
|
|
|
- cd ./pkg/login-app/cmd && go build -v . && cd -
|
|
|
|
- mkdir dist
|
|
|
|
- go build -v -o dist/checker ./checker
|
|
|
|
- go build -v -o dist/token-validator ./token-validator
|
|
|
|
- cd ./pkg/minichecker/cmd && go build -v -o ../../../dist/minichecker . && cd -
|
|
|
|
- cd ./pkg/login-app/cmd && go build -v -o ../../../dist/login-app . && cd -
|
|
|
|
|
|
|
|
trigger:
|
|
|
|
event:
|
|
|
|
- push
|
|
|
|
|
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: build-arm
|
|
|
|
|
|
|
|
platform:
|
|
|
|
os: linux
|
|
|
|
arch: arm
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: compile binaries
|
|
|
|
image: golang:alpine
|
|
|
|
commands:
|
|
|
|
- apk --no-cache add build-base
|
|
|
|
- go vet -v ./checker
|
|
|
|
- go vet -v ./token-validator
|
|
|
|
- cd ./pkg/minichecker/cmd && go vet -v . && cd -
|
|
|
|
- cd ./pkg/login-app/cmd && go build -v . && cd -
|
|
|
|
- mkdir dist
|
|
|
|
- go build -v -o dist/checker ./checker
|
|
|
|
- go build -v -o dist/token-validator ./token-validator
|
|
|
|
- cd ./pkg/minichecker/cmd && go build -v -o ../../../dist/minichecker . && cd -
|
|
|
|
- cd ./pkg/login-app/cmd && go build -v -o ../../../dist/login-app . && cd -
|
|
|
|
environment:
|
|
|
|
CGO_ENABLED: 0
|
|
|
|
GOARM: 5
|
|
|
|
|
|
|
|
- name: deploy binaries
|
|
|
|
image: appleboy/drone-scp
|
|
|
|
settings:
|
|
|
|
tar_tmp_path: /tmp/
|
|
|
|
host: adlin.nemunai.re
|
|
|
|
target: /var/lib/lxc/adlin/rootfs/home/newbuilds
|
|
|
|
source: dist/*
|
|
|
|
strip_components: 1
|
|
|
|
username:
|
|
|
|
from_secret: ssh_username
|
|
|
|
key:
|
|
|
|
from_secret: deploy_key
|
|
|
|
port:
|
|
|
|
from_secret: ssh_port
|
|
|
|
when:
|
|
|
|
branch:
|
|
|
|
- master
|
|
|
|
event:
|
|
|
|
- push
|
|
|
|
|
|
|
|
trigger:
|
|
|
|
event:
|
|
|
|
- push
|
2022-02-18 23:25:12 +00:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: build-tutorial-2-subject
|
|
|
|
|
|
|
|
platform:
|
|
|
|
os: linux
|
|
|
|
arch: amd64
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: render subject
|
|
|
|
image: pandoc/latex:2.17.1
|
|
|
|
commands:
|
|
|
|
- sed -i s/v3.12/v3.14/ /etc/apk/repositories
|
|
|
|
- apk add --no-cache make ttf-linux-libertine
|
|
|
|
- tlmgr update --self
|
|
|
|
- tlmgr install enumitem environ etoolbox preprint sectsty selnolig tcolorbox titling
|
|
|
|
- wget -O /tmp/FantasqueSansMono-Normal.tar.gz https://github.com/belluzj/fantasque-sans/releases/download/v1.8.0/FantasqueSansMono-Normal.tar.gz
|
|
|
|
- mkdir /usr/share/fonts/fantasque-sans-mono
|
|
|
|
- tar xf /tmp/FantasqueSansMono-Normal.tar.gz -C /usr/share/fonts/fantasque-sans-mono OTF/ TTF/ --strip-component=1
|
|
|
|
- mkdir dist
|
|
|
|
- make -C tutorial/ansible
|
|
|
|
- mv tutorial/ansible/tutorial.pdf dist/tutorial-2.pdf
|
|
|
|
|
|
|
|
trigger:
|
|
|
|
ref:
|
|
|
|
- refs/tags/tutorial2-*
|
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: build-tutorial-3-subject
|
|
|
|
|
|
|
|
platform:
|
|
|
|
os: linux
|
|
|
|
arch: amd64
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: render subject
|
|
|
|
image: pandoc/latex:2.17.1
|
|
|
|
commands:
|
|
|
|
- sed -i s/v3.12/v3.14/ /etc/apk/repositories
|
|
|
|
- apk add --no-cache make ttf-linux-libertine
|
|
|
|
- tlmgr update --self
|
|
|
|
- tlmgr install enumitem environ etoolbox preprint sectsty selnolig tcolorbox titling
|
|
|
|
- wget -O /tmp/FantasqueSansMono-Normal.tar.gz https://github.com/belluzj/fantasque-sans/releases/download/v1.8.0/FantasqueSansMono-Normal.tar.gz
|
|
|
|
- mkdir /usr/share/fonts/fantasque-sans-mono
|
|
|
|
- tar xf /tmp/FantasqueSansMono-Normal.tar.gz -C /usr/share/fonts/fantasque-sans-mono OTF/ TTF/ --strip-component=1
|
|
|
|
- mkdir dist
|
|
|
|
- make -C tutorial/nat
|
|
|
|
- mv tutorial/nat/tutorial.pdf dist/tutorial-3.pdf
|
|
|
|
|
|
|
|
trigger:
|
|
|
|
ref:
|
|
|
|
- refs/tags/tutorial3-*
|