Skip to content

Commit

Permalink
.github: Trigger build and publish on merge on development branches
Browse files Browse the repository at this point in the history
  • Loading branch information
TeddyAndrieux committed Oct 8, 2024
1 parent 21402de commit c9be24c
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 5 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/post-merge.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Post merge

on:
# Push on development branch = PR merge
push:
branches:
- development/*

jobs:
build:
uses: ./.github/workflows/build.yaml
secrets: inherit

publish:
needs:
- build
uses: ./.github/workflows/publish.yaml
secrets: inherit
with:
is_production: false
5 changes: 0 additions & 5 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,6 @@ on:
ARTIFACTS_PASSWORD:
required: true

# Push on development branch = PR merge
push:
branches:
- "development/**"

env:
REGISTRY_HOST: ghcr.io
REGISTRY_PROJECT: "${{ github.repository }}"
Expand Down

0 comments on commit c9be24c

Please sign in to comment.