Skip to content

Publish Provider Package #19

Publish Provider Package

Publish Provider Package #19

Workflow file for this run

name: Publish Provider Package
on:
workflow_dispatch:
inputs:
cleanup-disks:
description: Whether or not run the cleanup disks step in the runner
type: boolean
default: true
required: false
go-version:
description: Go version to use if building needs to be done
default: "1.26"
required: false
version:
description: Version string to use while publishing the package (e.g. v1.0.0-alpha.1)
default: ""
required: false
jobs:
publish-provider-package:
uses: crossplane-contrib/provider-workflows/.github/workflows/publish-provider.yml@main
with:
cleanup-disk: ${{ inputs.cleanup-disks }}
go-version: ${{ github.event.inputs.go-version }}
repository: provider-mongodbatlas
version: ${{ github.event.inputs.version }}
secrets:
GHCR_PAT: ${{ secrets.GITHUB_TOKEN }}
XPKG_MIRROR_ACCESS_ID: ${{ secrets.UPBOUND_MARKETPLACE_PUSH_ROBOT_USR }}
XPKG_MIRROR_TOKEN: ${{ secrets.UPBOUND_MARKETPLACE_PUSH_ROBOT_PSW }}
tag-latest:
needs: publish-provider-package
runs-on: ubuntu-latest
steps:
- name: Login to GHCR
uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Install crane
uses: imjasonh/setup-crane@6da1ae018866400525525ce74ff892880c099987 # v0.5
- name: Tag latest
run: crane tag ghcr.io/crossplane-contrib/provider-mongodbatlas:${{ inputs.version }} latest
add-extensions:
needs: publish-provider-package
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
submodules: true
- name: Login to Upbound Marketplace
uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4
with:
registry: xpkg.upbound.io
username: ${{ secrets.UPBOUND_MARKETPLACE_PUSH_ROBOT_USR }}
password: ${{ secrets.UPBOUND_MARKETPLACE_PUSH_ROBOT_PSW }}
- name: Append extensions
run: make xpkg.append VERSION=${{ inputs.version }}
env:
GO_REQUIRED_VERSION: ${{ inputs.go-version }}