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:
|
|
|
|
image: plugins/docker
|
|
|
|
secrets:
|
|
|
|
- docker_password
|
|
|
|
settings:
|
|
|
|
registry: gitea.xeovalyte.dev
|
2022-11-01 18:49:56 +01:00
|
|
|
username: xeovalyte
|
|
|
|
email: me+gitea@xeovalyte.dev
|
2022-11-01 18:30:36 +01:00
|
|
|
password: $$DOCKER_PASSWORD
|
2022-11-01 18:39:02 +01:00
|
|
|
repo: gitea.xeovalyte.dev/xeovalyte/wrbapp
|
2022-11-01 18:30:36 +01:00
|
|
|
tags: latest
|
|
|
|
|
2022-11-01 15:57:05 +01:00
|
|
|
|