parent
d1f9483909
commit
733ab0fd33
2 changed files with 37 additions and 0 deletions
33
.woodpecker.yml
Normal file
33
.woodpecker.yml
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
|
||||||
|
pipeline:
|
||||||
|
build-image:
|
||||||
|
image: docker.io/woodpeckerci/plugin-docker-buildx
|
||||||
|
secrets: [docker_username, docker_password]
|
||||||
|
settings:
|
||||||
|
registry: https://gitea.nulo.in
|
||||||
|
username: Nulo
|
||||||
|
repo: gitea.nulo.in/nulo/schreiben-build
|
||||||
|
dockerfile: tooling/Containerfile
|
||||||
|
when:
|
||||||
|
path:
|
||||||
|
include: ["tooling/*", ".woodpecker.yml"]
|
||||||
|
|
||||||
|
build:
|
||||||
|
image: gitea.nulo.in/nulo/schreiben-build:latest
|
||||||
|
commands:
|
||||||
|
- pnpm install
|
||||||
|
- pnpm check
|
||||||
|
- pnpm build
|
||||||
|
|
||||||
|
- |
|
||||||
|
eval $(ssh-agent -s)
|
||||||
|
echo "$${SSH_KEY}" | tr -d '\r' | ssh-add -
|
||||||
|
mkdir -p ~/.ssh
|
||||||
|
echo "[nulo.ar]:993 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHgHIbf5/jkeyLMndnWlEO12DPj41YPqkmz+aIreVOsP" > ~/.ssh/known_hosts
|
||||||
|
|
||||||
|
- scp -rP993 dist/* root@nulo.in:/var/www/beta.schreiben.nulo.ar/
|
||||||
|
when:
|
||||||
|
branch: antifascista
|
||||||
|
event: push
|
||||||
|
secrets:
|
||||||
|
- ssh_key
|
4
tooling/Containerfile
Normal file
4
tooling/Containerfile
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
FROM docker.io/alpine:3.17
|
||||||
|
|
||||||
|
RUN apk add --no-cache nodejs npm rsync openssh-client-default
|
||||||
|
RUN npm install --global pnpm
|
Loading…
Reference in a new issue