This commit is contained in:
parent
97779bb248
commit
2e4c1fbae5
|
@ -5,6 +5,8 @@ pipeline:
|
|||
- npm i
|
||||
- sed -i "s#APP_BASE_URL = '/'#APP_BASE_URL = '/og-image'#" webpack.config.js src/router.js
|
||||
- npm run build
|
||||
when:
|
||||
branch: [master]
|
||||
|
||||
update:
|
||||
image: alpine/git
|
||||
|
@ -20,6 +22,8 @@ pipeline:
|
|||
- mv /tmp/public/* .
|
||||
- git add .
|
||||
- git commit -m "Build ${CI_BUILD_NUMBER}"
|
||||
when:
|
||||
branch: [master]
|
||||
|
||||
deploy:
|
||||
image: appleboy/drone-git-push
|
||||
|
@ -31,3 +35,5 @@ pipeline:
|
|||
commit: false
|
||||
ssh_key:
|
||||
from_secret: ssh_priv_key
|
||||
when:
|
||||
branch: [master]
|
||||
|
|
Loading…
Reference in a new issue