CI: matar

This commit is contained in:
Cat /dev/Nulo 2021-11-17 20:33:53 -03:00
parent e8e7d85e6e
commit 85326d5b67
1 changed files with 0 additions and 22 deletions

View File

@ -1,22 +0,0 @@
clone:
git:
image: woodpeckerci/plugin-git
pipeline:
build:
image: docker.io/golang:1.17-alpine
commands:
- CGO_ENABLED=0 GOOS=linux go build -a -ldflags '-extldflags "-static"' .
upload:
image: docker.io/alpine:3.14
commands:
- apk add dropbear-dbclient dropbear-scp
- mkdir -p ~/.ssh
- echo "$${SSH_KEY}" | base64 -d >> ~/.ssh/id_dropbear
- echo "nulo.in ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHgHIbf5/jkeyLMndnWlEO12DPj41YPqkmz+aIreVOsP" >> ~/.ssh/known_hosts
- scp -r -P420 nft.nulo.in templates assets nftmashin@nulo.in:/home/nftmashin/
secrets:
- ssh_key
when:
event: push
branch: kopimi