From 7bd21a45c25822d98c2ebb0bdd21fdab03e0cf85 Mon Sep 17 00:00:00 2001 From: xeovalyte Date: Tue, 1 Nov 2022 15:55:20 +0100 Subject: [PATCH 01/15] Add '.woodpecker.yml' --- .woodpecker.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .woodpecker.yml diff --git a/.woodpecker.yml b/.woodpecker.yml new file mode 100644 index 0000000..b6994eb --- /dev/null +++ b/.woodpecker.yml @@ -0,0 +1,14 @@ +pipeline: + build: + image: node:16 + commands: + - npm i + - npm run build + publish: + image: node:16 + secrets: + - meli_api_token + commands: + - npm i + - npm run build + - 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" \ No newline at end of file From 98a74f8ca09a5f20a0b599efbe937cab42b928d0 Mon Sep 17 00:00:00 2001 From: xeovalyte Date: Tue, 1 Nov 2022 15:57:05 +0100 Subject: [PATCH 02/15] Update '.woodpecker.yml' --- .woodpecker.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index b6994eb..fc610f7 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -11,4 +11,5 @@ pipeline: commands: - npm i - npm run build - - 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" \ No newline at end of file + - 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" + \ No newline at end of file From eef14df8d0c693b747af6add3efdeb32bbdba5d4 Mon Sep 17 00:00:00 2001 From: xeovalyte Date: Tue, 1 Nov 2022 15:59:06 +0100 Subject: [PATCH 03/15] Update '.woodpecker.yml' --- .woodpecker.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.woodpecker.yml b/.woodpecker.yml index fc610f7..aeef3a8 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -2,6 +2,7 @@ pipeline: build: image: node:16 commands: + - cd frontend - npm i - npm run build publish: @@ -9,6 +10,7 @@ pipeline: secrets: - meli_api_token commands: + - cd frontend - npm i - npm run build - 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" From f1fa8b3ab86cbf9711752ead199599c6928f5750 Mon Sep 17 00:00:00 2001 From: xeovalyte Date: Tue, 1 Nov 2022 18:23:25 +0100 Subject: [PATCH 04/15] test --- .woodpecker.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index aeef3a8..6dc1feb 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -11,7 +11,5 @@ pipeline: - meli_api_token commands: - cd frontend - - npm i - - npm run build - 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" \ No newline at end of file From 7c68a776206d8f79f2788306aa47feebbcfe2d41 Mon Sep 17 00:00:00 2001 From: xeovalyte Date: Tue, 1 Nov 2022 18:30:36 +0100 Subject: [PATCH 05/15] 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 From 0d716098b369ef8056bbd067cda13cc0b2878e04 Mon Sep 17 00:00:00 2001 From: xeovalyte Date: Tue, 1 Nov 2022 18:35:54 +0100 Subject: [PATCH 06/15] added a dockerfile --- Dockerfile | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..2157804 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,9 @@ +FROM node:16 + +WORKDIR /usr/src/app + +COPY ./backend . + +EXPOSE 7289 + +CMD [ "node", "index.js" ] \ No newline at end of file From 39cd075d822eb851cb3fa3cdf0fbc0b804db6d91 Mon Sep 17 00:00:00 2001 From: xeovalyte Date: Tue, 1 Nov 2022 18:39:02 +0100 Subject: [PATCH 07/15] Update '.woodpecker.yml' --- .woodpecker.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 0524c95..495d104 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -27,7 +27,7 @@ pipeline: registry: gitea.xeovalyte.dev username: xeovalyte password: $$DOCKER_PASSWORD - repo: xeovalyte/wrbapp + repo: gitea.xeovalyte.dev/xeovalyte/wrbapp tags: latest \ No newline at end of file From 6ae4718c5530baf414a5d677f6e5ec6bdcd851ef Mon Sep 17 00:00:00 2001 From: xeovalyte Date: Tue, 1 Nov 2022 18:42:35 +0100 Subject: [PATCH 08/15] Update '.woodpecker.yml' --- .woodpecker.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 495d104..3ecaaa1 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -25,7 +25,7 @@ pipeline: - docker_password settings: registry: gitea.xeovalyte.dev - username: xeovalyte + username: me+gitea@xeovalyte.dev password: $$DOCKER_PASSWORD repo: gitea.xeovalyte.dev/xeovalyte/wrbapp tags: latest From 49f6a06e3fba67482845032898d390567d82cef9 Mon Sep 17 00:00:00 2001 From: xeovalyte Date: Tue, 1 Nov 2022 18:49:56 +0100 Subject: [PATCH 09/15] Update '.woodpecker.yml' --- .woodpecker.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 3ecaaa1..4a18277 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -25,7 +25,8 @@ pipeline: - docker_password settings: registry: gitea.xeovalyte.dev - username: me+gitea@xeovalyte.dev + username: xeovalyte + email: me+gitea@xeovalyte.dev password: $$DOCKER_PASSWORD repo: gitea.xeovalyte.dev/xeovalyte/wrbapp tags: latest From e22ae125a6e5dbbd33a4c659f63df816d89364e6 Mon Sep 17 00:00:00 2001 From: xeovalyte Date: Tue, 1 Nov 2022 18:51:54 +0100 Subject: [PATCH 10/15] Update '.woodpecker.yml' --- .woodpecker.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 4a18277..495d104 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -26,7 +26,6 @@ pipeline: settings: registry: gitea.xeovalyte.dev username: xeovalyte - email: me+gitea@xeovalyte.dev password: $$DOCKER_PASSWORD repo: gitea.xeovalyte.dev/xeovalyte/wrbapp tags: latest From 00e71b28159ba30fd9cf9e176308c3584a8b8c0e Mon Sep 17 00:00:00 2001 From: xeovalyte Date: Tue, 1 Nov 2022 18:55:04 +0100 Subject: [PATCH 11/15] Update '.woodpecker.yml' --- .woodpecker.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 495d104..850dbc9 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -23,11 +23,9 @@ pipeline: image: plugins/docker secrets: - docker_password - settings: - registry: gitea.xeovalyte.dev - username: xeovalyte - password: $$DOCKER_PASSWORD - repo: gitea.xeovalyte.dev/xeovalyte/wrbapp - tags: latest + 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 \ No newline at end of file From ba156f7093b90dc518c3a061b5862cbc3c2e5cf5 Mon Sep 17 00:00:00 2001 From: xeovalyte Date: Tue, 1 Nov 2022 18:59:23 +0100 Subject: [PATCH 12/15] Update '.woodpecker.yml' --- .woodpecker.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 850dbc9..15068db 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -20,7 +20,7 @@ pipeline: - npm i publish-backend: - image: plugins/docker + image: docker secrets: - docker_password commands: From 22a484cba4dc390928aa2ccd7b298c98829bc222 Mon Sep 17 00:00:00 2001 From: xeovalyte Date: Tue, 1 Nov 2022 19:01:02 +0100 Subject: [PATCH 13/15] Update '.woodpecker.yml' --- .woodpecker.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.woodpecker.yml b/.woodpecker.yml index 15068db..9d86ee5 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -27,5 +27,7 @@ pipeline: - 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 + volumes: + - /var/run/docker.sock:/var/run/docker.sock \ No newline at end of file From 9b578e69cfa1aae1fd8ebb4f719222b6eb78780a Mon Sep 17 00:00:00 2001 From: xeovalyte Date: Tue, 1 Nov 2022 19:07:43 +0100 Subject: [PATCH 14/15] Update '.woodpecker.yml' --- .woodpecker.yml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 9d86ee5..51a4710 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -20,14 +20,15 @@ pipeline: - npm i publish-backend: - image: docker + image: plugins/docker secrets: - docker_password - 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 - volumes: - - /var/run/docker.sock:/var/run/docker.sock + settings: + username: xeovalyte + password: + from_secret: docker_password + repo: gitea.xeovalyte.dev/xeovalyte/wrbapp + tags: + - latest \ No newline at end of file From 0721465403f505d5d35964df96c24d3db5b111d8 Mon Sep 17 00:00:00 2001 From: xeovalyte Date: Tue, 1 Nov 2022 19:08:44 +0100 Subject: [PATCH 15/15] Update '.woodpecker.yml' --- .woodpecker.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.woodpecker.yml b/.woodpecker.yml index 51a4710..e832a60 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -30,5 +30,6 @@ pipeline: repo: gitea.xeovalyte.dev/xeovalyte/wrbapp tags: - latest + registry: gitea.xeovalyte.dev \ No newline at end of file