Skip to content

Commit

Permalink
Modify the current workflow to do build-only on PRs
Browse files Browse the repository at this point in the history
Signed-off-by: Gunasekhar Matamalam <[email protected]>
  • Loading branch information
gunamata committed Nov 7, 2024
1 parent c1a5117 commit 7010b6f
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
name: Build
on: [push, pull_request, workflow_dispatch]
on:
workflow_call:
inputs:
push:
required: true
type: boolean
jobs:
build:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -41,5 +46,5 @@ jobs:
platforms: |
linux/amd64
linux/arm64
push: true
push: ${{ inputs.push }}
tags: ${{ steps.tags.outputs.TAGS }}
13 changes: 13 additions & 0 deletions .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Build and Publish
on:
workflow_dispatch:
push:
branches:
- main
tags:
- 'v*'
jobs:
build:
uses: .github/workflows/build.yaml
with:
push: true
7 changes: 7 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
name: Build
on: [pull_request, workflow_dispatch]
jobs:
build:
uses: .github/workflows/build.yaml
with:
push: false

0 comments on commit 7010b6f

Please sign in to comment.