2023-08-10 04:12:29 +00:00
|
|
|
platform: linux/amd64
|
|
|
|
steps:
|
2023-08-16 19:00:43 +00:00
|
|
|
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/
|
|
|
|
|
2023-05-04 21:59:56 +00:00
|
|
|
publish:
|
2023-08-16 19:26:50 +00:00
|
|
|
image: gitea.elara.ws/elara6331/crane
|
2023-08-16 19:00:43 +00:00
|
|
|
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
|
|
|
|
|
2023-05-04 22:10:09 +00:00
|
|
|
deploy:
|
2023-05-16 19:43:11 +00:00
|
|
|
image: loq9/drone-nomad
|
2023-05-04 22:14:01 +00:00
|
|
|
secrets: [lure_api_github_secret]
|
2023-05-04 22:10:09 +00:00
|
|
|
settings:
|
|
|
|
addr: http://192.168.100.62:4646
|
|
|
|
template: template.nomad
|
|
|
|
environment:
|
|
|
|
- PLUGIN_WATCH_DEPLOYMENT=true
|
2023-05-04 22:11:44 +00:00
|
|
|
- PLUGIN_WATCH_DEPLOYMENT_TIMEOUT=10m
|