feat: Add items website code base + drone pipeline #9
@ -37,7 +37,7 @@
|
||||
file:
|
||||
path: "{{ lookup('env', 'SPT_ITEMS_PATH') }}"
|
||||
owner: "{{ lookup('env', 'DEPLOYMENT_USER') }}"
|
||||
group: www-data
|
||||
group: "{{ lookup('env', 'SPT_ITEMS_HOSTNAME') }}"
|
||||
mode: 0774
|
||||
recurse: yes
|
||||
|
||||
|
@ -1,13 +1,10 @@
|
||||
kind: pipeline
|
||||
type: kubernetes
|
||||
type: deocker
|
||||
name: default
|
||||
|
||||
concurrency:
|
||||
limit: 1
|
||||
|
||||
environment:
|
||||
SPT_ITEMS_PATH: /var/www/html/aki/spt-items-api
|
||||
|
||||
trigger:
|
||||
event:
|
||||
|
||||
- push
|
||||
@ -66,6 +63,10 @@ steps:
|
||||
from_secret: spt_items_hostname
|
||||
DEPLOYMENT_USER:
|
||||
from_secret: deploy_username
|
||||
DEPLOYMENT_USER_GROUP:
|
||||
from_secret: deploy_user_group
|
||||
SPT_ITEMS_PATH:
|
||||
from_secret: deploy_path
|
||||
when:
|
||||
branch:
|
||||
- master
|
||||
|
@ -5,9 +5,6 @@ name: default
|
||||
concurrency:
|
||||
limit: 1
|
||||
|
||||
environment:
|
||||
SPT_ITEMS_PATH: /var/www/html/aki/spt-items-api
|
||||
|
||||
trigger:
|
||||
event:
|
||||
- push
|
||||
@ -66,6 +63,10 @@ steps:
|
||||
from_secret: spt_items_hostname
|
||||
DEPLOYMENT_USER:
|
||||
from_secret: deploy_username
|
||||
DEPLOYMENT_USER_GROUP:
|
||||
from_secret: deploy_user_group
|
||||
SPT_ITEMS_PATH:
|
||||
from_secret: deploy_path
|
||||
when:
|
||||
branch:
|
||||
- master
|
||||
|
Loading…
x
Reference in New Issue
Block a user
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