Изменил(а) на '.drone.yml'

main
vladimirkutkovoy 1 year ago
parent f76f6ee968
commit edb1cefb31
  1. 18
      .drone.yml

@ -3,13 +3,17 @@ type: docker
name: build-and-deploy name: build-and-deploy
steps: steps:
# 1. Install dependencies and build the project # 1. Install dependencies and build the project
- name: install_and_build - name: install_and_build
image: node image: node:18
commands: volumes:
- npm install - name: host_build
- npm run build path: /build # Монтируем внешний путь в контейнер как /build
- cp -r build /root/docker/gitea/drone/src/ commands:
- npm install
- npm run build
# Копируем результат сборки в смонтированную директорию на хосте
- cp -r build/* /build/
# 2. Deploy Docker container with Nginx and copy build files # 2. Deploy Docker container with Nginx and copy build files
- name: deploy - name: deploy

Loading…
Cancel
Save