Skip to content

Commit

Permalink
Merge pull request #734 from sergenyalcin/integrate-reusable-workflows
Browse files Browse the repository at this point in the history
Integrate reusable workflows for provider package publishing
  • Loading branch information
sergenyalcin authored Feb 19, 2025
2 parents 50c7e03 + df155e9 commit f87c1ef
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 f87c1ef

Please sign in to comment.