Update .woodpecker.yml

This commit is contained in:
2026-07-15 15:54:28 +03:30
parent 72e5bd616c
commit 2fda740171

View File

@@ -1,5 +1,6 @@
# yara724/api — development deployment (Deploy-Develop) # yara724/api — development deployment (Deploy-Develop)
# Manual tasks: see ci-cd/TASK.md # Manual tasks: see ci-cd/TASK.md
# Requires: repo marked Trusted in Woodpecker (host volume mounts)
when: when:
- event: push - event: push
@@ -8,7 +9,8 @@ when:
skip_clone: true skip_clone: true
environment: variables:
- &pipeline_env
WORKSPACE: /data/1-delploy/gitea/yara724/api WORKSPACE: /data/1-delploy/gitea/yara724/api
PROJECT_NAME: Yara724 API PROJECT_NAME: Yara724 API
ENVIRONMENT: Development ENVIRONMENT: Development
@@ -22,6 +24,8 @@ environment:
steps: steps:
pull: pull:
image: alpine/git:latest image: alpine/git:latest
environment:
<<: *pipeline_env
volumes: volumes:
- /data/1-delploy/gitea/yara724/api:/workspace - /data/1-delploy/gitea/yara724/api:/workspace
commands: commands:
@@ -31,6 +35,8 @@ steps:
deploy: deploy:
image: docker:24-cli image: docker:24-cli
environment:
<<: *pipeline_env
volumes: volumes:
- /var/run/docker.sock:/var/run/docker.sock - /var/run/docker.sock:/var/run/docker.sock
- /data/1-delploy/gitea/yara724/api:/workspace - /data/1-delploy/gitea/yara724/api:/workspace
@@ -40,11 +46,12 @@ steps:
notify-success: notify-success:
image: alpine:3.20 image: alpine:3.20
volumes:
- /data/1-delploy/gitea/yara724/api:/workspace
environment: environment:
<<: *pipeline_env
ROCKETCHAT_WEBHOOK: ROCKETCHAT_WEBHOOK:
from_secret: rocketchat_webhook from_secret: rocketchat_webhook
volumes:
- /data/1-delploy/gitea/yara724/api:/workspace
when: when:
- status: success - status: success
commands: commands:
@@ -88,11 +95,12 @@ steps:
notify-failure: notify-failure:
image: alpine:3.20 image: alpine:3.20
volumes:
- /data/1-delploy/gitea/yara724/api:/workspace
environment: environment:
<<: *pipeline_env
ROCKETCHAT_WEBHOOK: ROCKETCHAT_WEBHOOK:
from_secret: rocketchat_webhook from_secret: rocketchat_webhook
volumes:
- /data/1-delploy/gitea/yara724/api:/workspace
when: when:
- status: failure - status: failure
commands: commands: