From 7c68a776206d8f79f2788306aa47feebbcfe2d41 Mon Sep 17 00:00:00 2001 From: xeovalyte Date: Tue, 1 Nov 2022 18:30:36 +0100 Subject: [PATCH] Update '.woodpecker.yml' --- .woodpecker.yml | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 6dc1feb..0524c95 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -1,15 +1,33 @@ pipeline: - build: + build-frontend: image: node:16 commands: - cd frontend - npm i - npm run build - publish: + publish-frontend: image: node:16 secrets: - meli_api_token commands: - cd frontend - 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" + + build-backend: + image: node:16 + commands: + - cd backend + - npm i + + publish-backend: + image: plugins/docker + secrets: + - docker_password + settings: + registry: gitea.xeovalyte.dev + username: xeovalyte + password: $$DOCKER_PASSWORD + repo: xeovalyte/wrbapp + tags: latest + \ No newline at end of file