mirror of
https://github.com/lukaszraczylo/kubemirror.git
synced 2026-07-12 20:30:22 +00:00
fixup! fix: Mirrored resources managed by other operators.
This commit is contained in:
@@ -1,71 +1,75 @@
|
|||||||
name: Release
|
name: Release
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
push:
|
push:
|
||||||
tags:
|
paths-ignore:
|
||||||
- 'v*'
|
- "**.md"
|
||||||
|
- "docs/**"
|
||||||
|
- "examples/**"
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
id-token: write
|
id-token: write
|
||||||
contents: write
|
contents: write
|
||||||
packages: write
|
packages: write
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
release:
|
release:
|
||||||
uses: lukaszraczylo/shared-actions/.github/workflows/go-release.yaml@main
|
uses: lukaszraczylo/shared-actions/.github/workflows/go-release.yaml@main
|
||||||
with:
|
|
||||||
go-version: ">=1.25"
|
|
||||||
docker-enabled: true
|
|
||||||
secrets: inherit
|
|
||||||
|
|
||||||
publish-helm-chart:
|
|
||||||
needs: release
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
go-version: ">=1.25"
|
||||||
|
docker-enabled: true
|
||||||
|
secrets: inherit
|
||||||
|
|
||||||
- name: Get release version
|
publish-helm-chart:
|
||||||
id: version
|
needs: release
|
||||||
run: |
|
runs-on: ubuntu-latest
|
||||||
VERSION=$(git describe --tags --abbrev=0 2>/dev/null || echo "0.0.0")
|
steps:
|
||||||
VERSION=${VERSION#v}
|
- name: Checkout
|
||||||
echo "version=$VERSION" >> $GITHUB_OUTPUT
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Trigger helm-charts release
|
- name: Get release version
|
||||||
env:
|
id: version
|
||||||
GH_TOKEN: ${{ secrets.HOMEBREW_TAP_TOKEN }}
|
run: |
|
||||||
RELEASE_VERSION: ${{ steps.version.outputs.version }}
|
VERSION=$(git describe --tags --abbrev=0 2>/dev/null || echo "0.0.0")
|
||||||
run: |
|
VERSION=${VERSION#v}
|
||||||
gh api repos/lukaszraczylo/helm-charts/dispatches \
|
echo "version=$VERSION" >> $GITHUB_OUTPUT
|
||||||
-f event_type=release-chart \
|
|
||||||
-f client_payload[chart_name]=kubemirror \
|
|
||||||
-f client_payload[version]="$RELEASE_VERSION" \
|
|
||||||
-f client_payload[source_repo]=lukaszraczylo/kubemirror \
|
|
||||||
-f client_payload[chart_path]=charts/kubemirror
|
|
||||||
|
|
||||||
publish-website:
|
- name: Trigger helm-charts release
|
||||||
needs: release
|
env:
|
||||||
runs-on: ubuntu-latest
|
GH_TOKEN: ${{ secrets.HOMEBREW_TAP_TOKEN }}
|
||||||
permissions:
|
RELEASE_VERSION: ${{ steps.version.outputs.version }}
|
||||||
contents: read
|
run: |
|
||||||
pages: write
|
gh api repos/lukaszraczylo/helm-charts/dispatches \
|
||||||
id-token: write
|
-f event_type=release-chart \
|
||||||
steps:
|
-f client_payload[chart_name]=kubemirror \
|
||||||
- name: Checkout
|
-f client_payload[version]="$RELEASE_VERSION" \
|
||||||
uses: actions/checkout@v4
|
-f client_payload[source_repo]=lukaszraczylo/kubemirror \
|
||||||
|
-f client_payload[chart_path]=charts/kubemirror
|
||||||
|
|
||||||
- name: Setup Pages
|
publish-website:
|
||||||
uses: actions/configure-pages@v5
|
needs: release
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
pages: write
|
||||||
|
id-token: write
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Upload artifact
|
- name: Setup Pages
|
||||||
uses: actions/upload-pages-artifact@v3
|
uses: actions/configure-pages@v5
|
||||||
with:
|
|
||||||
path: './docs'
|
|
||||||
|
|
||||||
- name: Deploy to GitHub Pages
|
- name: Upload artifact
|
||||||
id: deployment
|
uses: actions/upload-pages-artifact@v3
|
||||||
uses: actions/deploy-pages@v4
|
with:
|
||||||
|
path: "./docs"
|
||||||
|
|
||||||
|
- name: Deploy to GitHub Pages
|
||||||
|
id: deployment
|
||||||
|
uses: actions/deploy-pages@v4
|
||||||
|
|||||||
Reference in New Issue
Block a user