feat: Add items website code base + drone pipeline #9

Merged
Ghost merged 16 commits from :development into development 2021-10-30 12:27:50 -04:00
3 changed files with 10 additions and 8 deletions
Showing only changes of commit 2e5e2e48e2 - Show all commits

View File

@ -37,7 +37,7 @@
file: file:
path: "{{ lookup('env', 'SPT_ITEMS_PATH') }}" path: "{{ lookup('env', 'SPT_ITEMS_PATH') }}"
owner: "{{ lookup('env', 'DEPLOYMENT_USER') }}" owner: "{{ lookup('env', 'DEPLOYMENT_USER') }}"
group: www-data group: "{{ lookup('env', 'SPT_ITEMS_HOSTNAME') }}"
mode: 0774 mode: 0774
recurse: yes recurse: yes

View File

@ -1,13 +1,10 @@
kind: pipeline kind: pipeline
type: kubernetes type: deocker
name: default name: default
concurrency: concurrency:
limit: 1 limit: 1
environment:
SPT_ITEMS_PATH: /var/www/html/aki/spt-items-api
trigger: trigger:
event: event:
Outdated
Review
The path will be `/var/www/html/aki/Website/items`
The path will be `/var/www/html/aki/Website/items`
Outdated
Review

Thank you for the review.

I converted the path to a secret. Now we can add it in the Drone instance and even change it without the need to re-release this Drone pipeline.

EDIT: The README has also been updated. Checking if the server complies with the automated process should be easier now

Thank you for the review. I converted the path to a secret. Now we can add it in the Drone instance and even change it without the need to re-release this Drone pipeline. EDIT: The README has also been updated. Checking if the server complies with the automated process should be easier now
- push - push
@ -66,6 +63,10 @@ steps:
from_secret: spt_items_hostname from_secret: spt_items_hostname
DEPLOYMENT_USER: DEPLOYMENT_USER:
from_secret: deploy_username from_secret: deploy_username
DEPLOYMENT_USER_GROUP:
from_secret: deploy_user_group
SPT_ITEMS_PATH:
from_secret: deploy_path
when: when:
branch: branch:
- master - master

View File

@ -5,9 +5,6 @@ name: default
concurrency: concurrency:
limit: 1 limit: 1
environment:
SPT_ITEMS_PATH: /var/www/html/aki/spt-items-api
trigger: trigger:
event: event:
- push - push
@ -66,6 +63,10 @@ steps:
from_secret: spt_items_hostname from_secret: spt_items_hostname
DEPLOYMENT_USER: DEPLOYMENT_USER:
from_secret: deploy_username from_secret: deploy_username
DEPLOYMENT_USER_GROUP:
from_secret: deploy_user_group
SPT_ITEMS_PATH:
from_secret: deploy_path
when: when:
branch: branch:
- master - master