Renamed upload_manifests to push_manifests

This commit is contained in:
2025-11-16 19:58:27 +01:00
parent 2ab1019ce7
commit d4842f1cda

View File

@@ -6,8 +6,8 @@ on:
generate_crds:
description: Runs a binary called gencrd in the docker container and writes the output to ./manifests/crds.yaml
type: boolean
upload_manifests:
description: Upload manifest files to OCI repository
push_manifests:
description: Push manifest files to OCI repository
default: true
type: boolean
webhook_url:
@@ -49,12 +49,12 @@ jobs:
uses: docker/setup-buildx-action@v3
- name: Install kustomize
if: inputs.upload_manifests == true
if: inputs.push_manifests == true
run: |
curl -s "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh" | bash
- name: Setup Flux CLI
if: inputs.upload_manifests == true
if: inputs.push_manifests == true
uses: https://github.com/fluxcd/flux2/action@main
with:
version: v2.5.0
@@ -94,12 +94,12 @@ jobs:
docker run --rm ${{ env.OCI_REPO }}@${{ steps.build.outputs.imageid }} /crdgen > ./manifests/crds.yaml
- name: Kustomize manifests
if: inputs.upload_manifests == true
if: inputs.push_manifests == true
run: |
./kustomize build ./manifests | sed "s/\${DIGEST}/${{ steps.build.outputs.digest }}/" > ./manifests.yaml
- name: Push manifests
if: inputs.upload_manifests == true
if: inputs.push_manifests == true
run: |
flux push artifact oci://${{ env.OCI_REPO }}/manifests:${{ gitea.head_ref || gitea.ref_name }} \
--path="./manifests.yaml" \