Skip to content

Commit

Permalink
Add pr trigger with label contstraint
Browse files Browse the repository at this point in the history
  • Loading branch information
walzph committed Oct 24, 2023
1 parent 4f874b4 commit d2aa053
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci_release.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Continuous Integration Release
name: CI on release

on:
release:
Expand Down
13 changes: 11 additions & 2 deletions .github/workflows/ci_workflow_dispatch.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,23 @@
name: Continuous Integration Workflow Dispatch
name: Build on PR or dispatch

on: workflow_dispatch
on:
workflow_dispatch:
pull_request:
types:
- opened
- synchronize
- reopened
- labeled

jobs:
fetch-tag:
if: ( github.event.action != 'labeled' && contains(github.event.pull_request.labels.*.name, 'build') ) || ( github.event.action == 'labeled' && github.event.label.name == 'build' )
uses: ghga-de/helmfile-templates/.github/workflows/fetch-tag.yml@main

push_to_docker_hub:
needs: fetch-tag
uses: ghga-de/helmfile-templates/.github/workflows/ci-reusable-workflow.yml@main
with:
tag: ${{ needs.fetch-tag.outputs.latest_tag }}-${{ github.sha }}
package_version: ${{ needs.fetch-tag.outputs.latest_tag }}
secrets: inherit

0 comments on commit d2aa053

Please sign in to comment.