This commit is contained in:
parent
88dfc50c81
commit
1c9301d68b
1 changed files with 14 additions and 1 deletions
|
@ -2,4 +2,17 @@ pipeline:
|
||||||
build:
|
build:
|
||||||
image: docker.io/golang:1.17-alpine
|
image: docker.io/golang:1.17-alpine
|
||||||
commands:
|
commands:
|
||||||
- go build
|
- CGO_ENABLED=0 GOOS=linux go build -a -ldflags '-extldflags "-static"' .
|
||||||
|
upload:
|
||||||
|
image: docker.io/alpine:3.14
|
||||||
|
commands:
|
||||||
|
- apk add 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 -P420 nft.nulo.in templates assets nftmashin@nulo.in:/home/nftmashin/
|
||||||
|
secrets:
|
||||||
|
- ssh_key
|
||||||
|
when:
|
||||||
|
event: push
|
||||||
|
branch: antifascista
|
||||||
|
|
Loading…
Reference in a new issue