lure-web/.woodpecker.yml
Elara Musayelyan bd9a6c09ea
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
Build without docker in docker
2023-08-16 12:00:43 -07:00

31 lines
1.2 KiB
YAML

platform: linux/amd64
steps:
build:
image: gitea.elara.ws/elara6331/node
environment:
- LURE_WEB_API_URL=https://api.lure.elara.ws
commands:
- npm i
- npm run build
- tar czf app.tar.gz app/
publish:
image: gcr.io/go-containerregistry/crane
secrets: [ registry_password ]
commands:
- crane auth login gitea.elara.ws -u Elara6331 -p "$${REGISTRY_PASSWORD}"
- crane append -b gitea.elara.ws/elara6331/node -f app.tar.gz -t gitea.elara.ws/elara6331/lure-web:amd64 --platform=linux/amd64
- crane append -b gitea.elara.ws/elara6331/node -f app.tar.gz -t gitea.elara.ws/elara6331/lure-web:arm64 --platform=linux/arm64
- crane append -b gitea.elara.ws/elara6331/node -f app.tar.gz -t gitea.elara.ws/elara6331/lure-web:riscv64 --platform=linux/riscv64
- crane index -m gitea.elara.ws/elara6331/lure-web:amd64 -m gitea.elara.ws/elara6331/lure-web:arm64 -m gitea.elara.ws/elara6331/lure-web:riscv64 -t gitea.elara.ws/elara6331/lure-web:latest
deploy:
image: loq9/drone-nomad
secrets: [lure_api_github_secret]
settings:
addr: http://192.168.100.62:4646
template: template.nomad
environment:
- PLUGIN_WATCH_DEPLOYMENT=true
- PLUGIN_WATCH_DEPLOYMENT_TIMEOUT=10m