2022-11-01 15:55:20 +01:00
|
|
|
pipeline:
|
2022-11-01 18:30:36 +01:00
|
|
|
build-frontend:
|
2022-11-01 15:55:20 +01:00
|
|
|
image: node:16
|
|
|
|
commands:
|
2022-11-01 15:59:06 +01:00
|
|
|
- cd frontend
|
2022-11-01 15:55:20 +01:00
|
|
|
- npm i
|
|
|
|
- npm run build
|
2022-11-01 18:30:36 +01:00
|
|
|
publish-frontend:
|
2022-11-01 15:55:20 +01:00
|
|
|
image: node:16
|
|
|
|
secrets:
|
|
|
|
- meli_api_token
|
|
|
|
commands:
|
2022-11-01 15:59:06 +01:00
|
|
|
- cd frontend
|
2022-11-01 15:57:05 +01:00
|
|
|
- npx -p "@getmeli/cli" meli upload .output/public --url https://meli.xeovalyte.dev --site 1e43e574-3eea-4e90-8c52-8a9bcab54f3a --token $$MELI_API_TOKEN --branch "main"
|
2022-11-01 18:30:36 +01:00
|
|
|
|
|
|
|
build-backend:
|
|
|
|
image: node:16
|
|
|
|
commands:
|
|
|
|
- cd backend
|
|
|
|
- npm i
|
|
|
|
|
|
|
|
publish-backend:
|
2022-11-01 18:59:23 +01:00
|
|
|
image: docker
|
2022-11-01 18:30:36 +01:00
|
|
|
secrets:
|
|
|
|
- docker_password
|
2022-11-01 18:55:04 +01:00
|
|
|
commands:
|
|
|
|
- docker build --rm -t gitea.xeovalyte.dev/xeovalyte/wrbapp .
|
|
|
|
- docker login gitea.xeovalyte.dev -p $$DOCKER_PASSWORD -u xeovalyte
|
|
|
|
- docker push gitea.xeovalyte.dev/xeovalyte/wrbapp:latest
|
2022-11-01 18:30:36 +01:00
|
|
|
|
2022-11-01 15:57:05 +01:00
|
|
|
|