feat: Add items website code base + drone pipeline #9
@ -30,9 +30,9 @@ steps:
|
|||||||
DEPLOYMENT_USER:
|
DEPLOYMENT_USER:
|
||||||
from_secret: deploy_username
|
from_secret: deploy_username
|
||||||
commands:
|
commands:
|
||||||
- sed -i 's/{{ SPT_HOSTNAME }}/'"$SPT_HOSTNAME"'/g' ./frontend/.env
|
- sed -i 's/{{ SPT_HOSTNAME }}/'"$SPT_HOSTNAME"'/g' ./items/frontend/.env
|
||||||
- sed -i 's/{{ DEPLOY_HOST }}/'"$DEPLOY_HOST"'/g' ./.ansible/inventory
|
- sed -i 's/{{ DEPLOY_HOST }}/'"$DEPLOY_HOST"'/g' ./.ansible-items/inventory
|
||||||
- sed -i 's/{{ DEPLOYMENT_USER }}/'"$DEPLOYMENT_USER"'/g' ./.ansible/inventory
|
- sed -i 's/{{ DEPLOYMENT_USER }}/'"$DEPLOYMENT_USER"'/g' ./.ansible-items/inventory
|
||||||
|
|
||||||
- name: build frontend
|
- name: build frontend
|
||||||
image: node:lts-alpine3.14
|
image: node:lts-alpine3.14
|
||||||
@ -40,25 +40,25 @@ steps:
|
|||||||
- node -v
|
- node -v
|
||||||
- npm -v
|
- npm -v
|
||||||
- yarn --version
|
- yarn --version
|
||||||
- yarn --cwd ./frontend install
|
- yarn --cwd ./items/frontend install
|
||||||
- yarn --cwd ./frontend build --pure-lockfile
|
- yarn --cwd ./items/frontend build --pure-lockfile
|
||||||
- rm -rf ./api/public/static/*
|
- rm -rf ./items/api/public/static/*
|
||||||
- mv ./frontend/build/* ./api/public
|
- mv ./items/frontend/build/* ./items/api/public
|
||||||
- rm ./api/public/index.html
|
- rm ./items/api/public/index.html
|
||||||
|
|
||||||
- name: check ansible syntax
|
- name: check ansible syntax
|
||||||
image: plugins/ansible:3
|
image: plugins/ansible:3
|
||||||
settings:
|
settings:
|
||||||
playbook: ./.ansible/playbook.yml
|
playbook: ./.ansible-items/playbook.yml
|
||||||
inventory: ./.ansible/inventory
|
inventory: ./.ansible-items/inventory
|
||||||
galaxy: ./.ansible/requirements.yml
|
galaxy: ./.ansible-items/requirements.yml
|
||||||
syntax_check: true
|
syntax_check: true
|
||||||
- name: apply ansible playbook
|
- name: apply ansible playbook
|
||||||
image: plugins/ansible:3
|
image: plugins/ansible:3
|
||||||
settings:
|
settings:
|
||||||
playbook: ./.ansible/playbook.yml
|
playbook: ./.ansible-items/playbook.yml
|
||||||
inventory: ./.ansible/inventory
|
inventory: ./.ansible-items/inventory
|
||||||
galaxy: ./.ansible/requirements.yml
|
galaxy: ./.ansible-items/requirements.yml
|
||||||
private_key:
|
private_key:
|
||||||
from_secret: deploy_ssh_key
|
from_secret: deploy_ssh_key
|
||||||
environment:
|
environment:
|
||||||
|
@ -7,4 +7,4 @@ items.sp-tarkov.com have been made by Shirito and Revingly
|
|||||||
This repository contain the following websites content:
|
This repository contain the following websites content:
|
||||||
* www.sp-tarkov.com
|
* www.sp-tarkov.com
|
||||||
* codepaste.sp-tarkov.com
|
* codepaste.sp-tarkov.com
|
||||||
* items.sp-tarkov.com
|
* [items.sp-tarkov.com](https://items.sp-tarkov.com) (see [developer documentation](./items/README.md))
|
Loading…
x
Reference in New Issue
Block a user