PLC-read/.drone.yml

42 lines
742 B
YAML
Raw Permalink Normal View History

2023-12-18 09:42:27 +08:00
---
kind: pipeline
type: docker
name: default
steps:
- name: build
2024-08-07 10:07:07 +08:00
image: node:16-alpine
pull: if_not_exists
environment:
NODE_ENV: ""
commands:
- yarn install --frozen-lockfile
- env ${NODE_ENV} yarn build
- name: publish
2023-12-18 09:42:27 +08:00
image: docker:dind
2024-08-07 10:07:07 +08:00
pull: if_not_exists
2023-12-18 09:42:27 +08:00
volumes:
- name: dockersock
path: /var/run/docker.sock
- name: dockerconfig
path: /root/.docker
commands:
2024-08-07 10:07:07 +08:00
- docker build -t hub.kszny.picaiba.com/kszny/plcreader-ui:1.0.0-hnry ./
- docker push hub.kszny.picaiba.com/kszny/plcreader-ui:1.0.0-hnry
2023-12-18 09:42:27 +08:00
depends_on:
- build
volumes:
- name: dockersock
host:
path: /var/run/docker.sock
- name: dockerconfig
host:
path: /root/.docker
trigger:
branch:
- master
event:
2024-08-07 10:07:07 +08:00
- push