steps: - name: telegram start notify image: appleboy/drone-telegram settings: token: 7616010754:AAGXMf8x-roKozdT0j-bOZ1y9dmbulbKPbM to: -4765409490 message: | 🚀 *Woodpecker CI Build Starting* 🚀 *Repo:* ${CI_REPO_OWNER}/${CI_REPO_NAME} *Repo Link:* ${CI_REPO_URL} *Branch:* ${CI_COMMIT_BRANCH} *Build Status:* *starting* *Build Link:* ${CI_PIPELINE_URL} *Commit ID:* `${CI_COMMIT_SHA:0:8}` *Commit By:* {{commit.author}} *Commit Link:* {{commit.link}} *Commit Msg:* {{commit.message}} 🙏 hopefully success Mas Bro. when: branch: - master - name: setup image: node:22-alpine commands: - apk update && apk add git - npm i typescript -g - npm install - echo '✅ success setup project' when: branch: - master - name: build-src image: node:22-alpine environment: NODE_ENV: prod commands: - npm i typescript -g - npm run build:production - echo '✅ success compile typescript and ready to deploy' when: branch: - master - name: deploy image: docker commands: - docker builder prune -f - docker container prune -f - docker-compose build - docker-compose up -d --no-deps --build --remove-orphans volumes: - /var/run/docker.sock:/var/run/docker.sock when: branch: - master - name: telegram failed notify image: appleboy/drone-telegram settings: token: 7616010754:AAGXMf8x-roKozdT0j-bOZ1y9dmbulbKPbM to: -4765409490 message: | 🚀 *Woodpecker CI Build Finish* 🚀 *Repo:* ${CI_REPO_OWNER}/${CI_REPO_NAME} *Repo Link:* ${CI_REPO_URL} *Branch:* ${CI_COMMIT_BRANCH} *Build Status:* *Failed* *Build Link:* ${CI_PIPELINE_URL} *Commit ID:* `${CI_COMMIT_SHA:0:8}` *Commit By:* {{commit.author}} *Commit Link:* {{commit.link}} *Commit Msg:* {{commit.message}} 🙈 build failed. Fix me please, before client is aware. when: status: - failure - cancel branch: - master - name: telegram success notify image: appleboy/drone-telegram settings: token: 7616010754:AAGXMf8x-roKozdT0j-bOZ1y9dmbulbKPbM to: -4765409490 message: | 🚀 *Woodpecker CI Build Finish* 🚀 *Repo:* ${CI_REPO_OWNER}/${CI_REPO_NAME} *Repo Link:* ${CI_REPO_URL} *Branch:* ${CI_COMMIT_BRANCH} *Build Status:* *Success* *Build Link:* ${CI_PIPELINE_URL} *Commit ID:* `${CI_COMMIT_SHA:0:8}` *Commit By:* {{commit.author}} *Commit Link:* {{commit.link}} *Commit Msg:* {{commit.message}} 😎 build succeeded. Good job. when: status: - success branch: - master