forked from github/plane
Compare commits
10 Commits
chore/work
...
webhook-te
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8845ffe90a | ||
|
|
acc8cf5ac0 | ||
|
|
8bb7b4de3b | ||
|
|
b8b5e11060 | ||
|
|
e9c5923fd5 | ||
|
|
9d9bf36ba0 | ||
|
|
a721cb7605 | ||
|
|
7d0e2cfd26 | ||
|
|
1c21223610 | ||
|
|
eaeb582fb5 |
21
.github/workflows/build-branch.yml
vendored
21
.github/workflows/build-branch.yml
vendored
@@ -12,12 +12,12 @@ on:
|
||||
- develop
|
||||
|
||||
env:
|
||||
TARGET_BRANCH: ${{ github.event.pull_request.base.ref }}
|
||||
TARGET_BRANCH: ${{ github.event.pull_request.base.ref || github.ref_name }}
|
||||
|
||||
jobs:
|
||||
branch_build_setup:
|
||||
if: ${{ (github.event_name == 'pull_request' && github.event.action =='closed' && github.event.pull_request.merged == true) }}
|
||||
name: Build-Push Web/Space/API/Proxy Docker Image
|
||||
name: Branch Build Setup
|
||||
runs-on: ubuntu-20.04
|
||||
|
||||
steps:
|
||||
@@ -58,6 +58,7 @@ jobs:
|
||||
gh_branch_name: ${{ env.TARGET_BRANCH }}
|
||||
|
||||
branch_build_push_frontend:
|
||||
name: Branch Build Push Frontend
|
||||
runs-on: ubuntu-20.04
|
||||
needs: [branch_build_setup]
|
||||
env:
|
||||
@@ -100,6 +101,7 @@ jobs:
|
||||
DOCKER_PASSWORD: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
|
||||
branch_build_push_space:
|
||||
name: Branch Build Push Space
|
||||
runs-on: ubuntu-20.04
|
||||
needs: [branch_build_setup]
|
||||
env:
|
||||
@@ -142,6 +144,7 @@ jobs:
|
||||
DOCKER_PASSWORD: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
|
||||
branch_build_push_backend:
|
||||
name: Branch Build Push Backend
|
||||
runs-on: ubuntu-20.04
|
||||
needs: [branch_build_setup]
|
||||
env:
|
||||
@@ -184,6 +187,7 @@ jobs:
|
||||
DOCKER_PASSWORD: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
|
||||
branch_build_push_proxy:
|
||||
name: Branch Build Push Proxy
|
||||
runs-on: ubuntu-20.04
|
||||
needs: [branch_build_setup]
|
||||
env:
|
||||
@@ -225,3 +229,16 @@ jobs:
|
||||
DOCKER_BUILDKIT: 1
|
||||
DOCKER_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
DOCKER_PASSWORD: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
|
||||
branch_build_success_webhook:
|
||||
name: Branch Build Success Webhook
|
||||
runs-on: ubuntu-20.04
|
||||
needs: [branch_build_setup, branch_build_push_frontend, branch_build_push_space, branch_build_push_backend, branch_build_push_proxy]
|
||||
if: ${{ secrets.WEBHOOK_URL && (github.event_name == 'pull_request' && github.event.action =='closed' && github.event.pull_request.merged == true) }}
|
||||
steps:
|
||||
- name: Send Success Webhook
|
||||
uses: distributhor/workflow-webhook@v3
|
||||
with:
|
||||
webhook_url: ${{ secrets.WEBHOOK_URL }}
|
||||
data: '{"branch": "${{ needs.branch_build_setup.outputs.gh_branch_name }}", "status": "success" }'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user