Изменил(а) на '.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
steps:
# 1. Install dependencies and build the project
- name: install_and_build
image: node
commands:
- npm install
- npm run build
- cp -r build /root/docker/gitea/drone/src/
# 1. Install dependencies and build the project
- name: install_and_build
image: node:18
volumes:
- name: host_build
path: /build # Монтируем внешний путь в контейнер как /build
commands:
- npm install
- npm run build
# Копируем результат сборки в смонтированную директорию на хосте
- cp -r build/* /build/
# 2. Deploy Docker container with Nginx and copy build files
- name: deploy

Loading…
Cancel
Save