Compare commits
No commits in common. "d086d55fb1d6e255ce386824a0cc85067a5260e6" and "e8e7d85e6efca24682de1e9afbdce99fd5a7351a" have entirely different histories.
d086d55fb1
...
e8e7d85e6e
2 changed files with 22 additions and 8 deletions
22
.woodpecker.yml
Normal file
22
.woodpecker.yml
Normal file
|
@ -0,0 +1,22 @@
|
|||
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
|
8
Makefile
8
Makefile
|
@ -1,8 +0,0 @@
|
|||
.PHONY: nft.nulo.in
|
||||
nft.nulo.in:
|
||||
CGO_ENABLED=0 GOOS=linux go build -a -ldflags '-extldflags "-static"' .
|
||||
|
||||
upload: nft.nulo.in
|
||||
ssh root@nulo.in/993 sv stop nftmashin
|
||||
scp -r -P993 nft.nulo.in templates assets nftmashin@nulo.in:/home/nftmashin/
|
||||
ssh root@nulo.in/993 sv start nftmashin
|
Loading…
Reference in a new issue