Compare commits

..

4 Commits
main ... dev

Author SHA1 Message Date
Vladimir Kutkovoy a60d25dd00 Merge branch 'dev' of https://git.vladimirkutkovoy.ru/vladimirkutkovoy/SKB-online-sites into dev 1 year ago
Vladimir Kutkovoy eae655f583 Update App.js 1 year ago
vladimirkutkovoy 71e992dcf7 Изменил(а) на '.drone.yml' 1 year ago
Vladimir Kutkovoy 13ccfd3b4e Update App.js 1 year ago
  1. 53
      .drone.yml
  2. 2
      src/App.js

@ -1,51 +1,12 @@
kind: pipeline
type: docker
name: build-and-deploy
name: default
steps:
- name: install_and_build
image: node:18
- name: test_node123
image: node
commands:
- npm install
- npm run build
- name: deploy
image: appleboy/drone-scp
settings:
host: 192.168.0.129
username:
from_secret: username_deploy
password:
from_secret: password_deploy
port: 22
target: /root/docker/nginx/www_data
source: build
- name: telegram notification
image: appleboy/drone-telegram
settings:
token:
from_secret: telegram_token
to:
from_secret: telegram_to
format: markdown
- npm install
- npm run build
when:
status:
- success
- failure
message: >
{{#success build.status}}
✅ Build #{{build.number}} of `{{repo.name}}` succeeded.
📝 Commit by {{commit.author}} on `{{commit.branch}}`:
```
{{commit.message}}
```
🌐 {{ build.link }}
{{else}}
❌ Build #{{build.number}} of `{{repo.name}}` failed.
📝 Commit by {{commit.author}} on `{{commit.branch}}`:
```
{{commit.message}}
```
🌐 {{ build.link }}
{{/success}}
branch:
- dev

@ -87,6 +87,7 @@ const App = () => {
<Th>ФИО</Th>
<Th>Лаборатория</Th>
<Th>Время входа</Th>
<Th>ОФис</Th>
</tr>
</thead>
<tbody>
@ -97,6 +98,7 @@ const App = () => {
<Td>{item.name}</Td>
<Td>{item.lab}</Td>
<Td>{item.timeIn}</Td>
<Td>{item.officeName}</Td>
</Tr>
))}
</tbody>

Loading…
Cancel
Save