mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2025-12-14 05:31:44 +00:00
* ci: add package version check (#396) * ci: add package version check Signed-off-by: Andy Lee <andy.lee@suse.com> * ci: extract check version in a script Signed-off-by: Andy Lee <andy.lee@suse.com> * ci: update env variable Signed-off-by: Andy Lee <andy.lee@suse.com> --------- Signed-off-by: Andy Lee <andy.lee@suse.com> (cherry picked from commit c541f81dc3b333e75f3b784c706210026029bc2c) # Conflicts: # .github/workflows/build-standalone-on-release.yaml * fix: conflict Signed-off-by: Andy Lee <andy.lee@suse.com> --------- Signed-off-by: Andy Lee <andy.lee@suse.com> Co-authored-by: Andy Lee <andy.lee@suse.com>
37 lines
788 B
YAML
37 lines
788 B
YAML
name: Build Harvester Catalog Image and Publish on Release
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
release:
|
|
types: [published]
|
|
|
|
defaults:
|
|
run:
|
|
shell: bash
|
|
working-directory: ./
|
|
|
|
jobs:
|
|
check-version:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Check package version
|
|
env:
|
|
TAG_VERSION: ${{ github.event.release.tag_name }}
|
|
run: ./scripts/check-version.sh $TAG_VERSION
|
|
|
|
build-and-push-extension-catalog:
|
|
needs: check-version
|
|
uses: ./.github/workflows/build-extension-catalog.yml
|
|
permissions:
|
|
actions: write
|
|
contents: read
|
|
packages: write
|
|
id-token: write
|
|
with:
|
|
registry_target: docker.io
|
|
registry_user: rancher
|
|
secrets: inherit
|