Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Commit

Permalink
BC-147 - add dispatch job after build and push job for the main branch (
Browse files Browse the repository at this point in the history
  • Loading branch information
mamutmk5 authored Aug 26, 2021
1 parent 1803ce9 commit 95c0ab8
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,22 @@ jobs:
platforms: linux/amd64
push: true
tags: ghcr.io/${{ github.repository }}:${{ github.sha }}
labels: ${{ steps.docker_meta_img.outputs.labels }}
labels: ${{ steps.docker_meta_img.outputs.labels }}

dispatch:
runs-on: ubuntu-latest
needs:
- build_and_push
steps:
- uses: actions/checkout@v2
- name: Extract branch name
shell: bash
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
id: extract_branch
- name: Repository Dispatch
uses: peter-evans/repository-dispatch@v1
with:
token: ${{ secrets.REPO_ACCESS_TOKEN }}
repository: hpi-schul-cloud/dof_app_deploy
event-type: dev-deploy
client-payload: '{"branch": "${{ steps.extract_branch.outputs.branch}}" }'

0 comments on commit 95c0ab8

Please sign in to comment.