Fix deployment
This commit is contained in:
parent
e9685f40f7
commit
973ad758f5
@ -11,7 +11,10 @@ environment:
|
||||
trigger:
|
||||
event:
|
||||
- push
|
||||
- promote
|
||||
branch:
|
||||
- master
|
||||
- main
|
||||
- development
|
||||
|
||||
steps:
|
||||
- name: fetch and update submodules to the latest commit
|
||||
@ -34,6 +37,11 @@ steps:
|
||||
- mv ./items/frontend/.env.example ./items/frontend/.env
|
||||
- sed -i 's/{{ DEPLOY_HOST }}/'"$DEPLOY_HOST"'/g' ./.ansible-items/inventory
|
||||
- sed -i 's/{{ DEPLOYMENT_USER }}/'"$DEPLOYMENT_USER"'/g' ./.ansible-items/inventory
|
||||
when:
|
||||
branch:
|
||||
- master
|
||||
- main
|
||||
- development
|
||||
|
||||
- name: build frontend
|
||||
image: node:lts-alpine3.14
|
||||
@ -46,6 +54,11 @@ steps:
|
||||
- rm -rf ./items/api/public/static/*
|
||||
- mv ./items/frontend/build/* ./items/api/public
|
||||
- rm ./items/api/public/index.html
|
||||
when:
|
||||
branch:
|
||||
- master
|
||||
- main
|
||||
- development
|
||||
|
||||
- name: check ansible syntax
|
||||
image: plugins/ansible:3
|
||||
@ -70,7 +83,6 @@ steps:
|
||||
DEPLOYMENT_USER:
|
||||
from_secret: deploy_username
|
||||
when:
|
||||
event:
|
||||
- promote
|
||||
target:
|
||||
- production
|
||||
branch:
|
||||
- master
|
||||
- main
|
Loading…
x
Reference in New Issue
Block a user