|
|
|
@ -1,9 +1,9 @@
|
|
|
|
|
# This file defines a Drone pipeline that builds a static website with "npm run build". This
|
|
|
|
|
# pipeline must be marked as "Trusted" in the Drone project settings.
|
|
|
|
|
#
|
|
|
|
|
# We mount the target directory of the project under "/var/www/{project}" to the container
|
|
|
|
|
# "dist/" directory. A caveat is that the container builds files with "root" permissions,
|
|
|
|
|
# so we need to fix those after each build with a second pipeline.
|
|
|
|
|
# We mount the target directory of the project at "/var/www/{project}" to the container
|
|
|
|
|
# "dist/" directory and the run the build. A caveat is that the container builds files
|
|
|
|
|
# with "root" permissions, so we need to fix those after each build with a second pipeline.
|
|
|
|
|
|
|
|
|
|
kind: pipeline
|
|
|
|
|
name: default
|
|
|
|
|