mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
feat: add image building trigger
This commit is contained in:
parent
0449d6f87c
commit
e464b30147
1 changed files with 13 additions and 0 deletions
13
.github/workflows/docker-build.yaml
vendored
13
.github/workflows/docker-build.yaml
vendored
|
|
@ -1,6 +1,8 @@
|
||||||
name: App Build
|
name: App Build
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
branches:
|
||||||
|
- dev
|
||||||
paths:
|
paths:
|
||||||
- "**"
|
- "**"
|
||||||
pull_request:
|
pull_request:
|
||||||
|
|
@ -14,3 +16,14 @@ jobs:
|
||||||
- name: Build Docker Image
|
- name: Build Docker Image
|
||||||
run: docker build -t learnhouse .
|
run: docker build -t learnhouse .
|
||||||
working-directory: .
|
working-directory: .
|
||||||
|
- name: Repository Dispatch
|
||||||
|
uses: peter-evans/repository-dispatch@v2
|
||||||
|
with:
|
||||||
|
token: ${{ secrets.PAT_TOKEN }}
|
||||||
|
repository: learnhouse/images
|
||||||
|
event-type: build-images
|
||||||
|
client-payload: |
|
||||||
|
{
|
||||||
|
"ref": "${{ github.sha }}",
|
||||||
|
"branch": "${{ github.head_ref || github.ref_name }}"
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue