Skip to content

Commit

Permalink
Integrate reusable workflows for provider package publishing
Browse files Browse the repository at this point in the history
Signed-off-by: Sergen Yalçın <[email protected]>
  • Loading branch information
sergenyalcin committed Feb 18, 2025
1 parent 50c7e03 commit df155e9
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/publish-provider-packages.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Publish Provider Packages

on:
workflow_dispatch:
inputs:
subpackages:
description: 'Subpackages to be built individually (e.g. config ec2)'
default: 'config'
required: false
size:
description: "Number of smaller provider packages to build and push with each build job"
default: '30'
required: true
concurrency:
description: "Number of parallel package builds within each build job"
default: '1'
required: false
version:
description: "Version string to use while publishing the packages (e.g. v1.0.0-alpha.1)"
default: ''
required: false
go-version:
description: 'Go version to use if building needs to be done'
default: '1.23'
required: false

jobs:
publish-provider-packages:
uses: crossplane-contrib/provider-workflows/.github/workflows/publish-provider-family.yml@main
with:
subpackages: ${{ github.event.inputs.subpackages }}
size: ${{ github.event.inputs.size }}
concurrency: ${{ github.event.inputs.concurrency }}
repository: provider-gcp
version: ${{ github.event.inputs.version }}
go-version: ${{ github.event.inputs.go-version }}
cleanup-disk: true
secrets:
GHCR_PAT: ${{ secrets.GITHUB_TOKEN }}
XPKG_UPBOUND_TOKEN: ${{ secrets.XPKG_UPBOUND_TOKEN }}

0 comments on commit df155e9

Please sign in to comment.