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