diff --git a/.gitea/workflows/rust-kubernetes.yaml b/.gitea/workflows/rust-kubernetes.yaml index f09f493..333b0a7 100644 --- a/.gitea/workflows/rust-kubernetes.yaml +++ b/.gitea/workflows/rust-kubernetes.yaml @@ -5,8 +5,9 @@ on: inputs: generate_crds: description: Runs a binary called gencrd in the docker container and writes the output to ./manifests/crds.yaml - default: false - required: false + type: boolean + upload_manifests: + description: Upload manifest files to OCI repository type: boolean webhook_url: description: Webhook to call after build is completed @@ -84,10 +85,12 @@ jobs: docker run --rm ${{ env.OCI_REPO }}@${{ steps.build.outputs.imageid }} /crdgen > ./manifests/crds.yaml - name: Kustomize manifests + if: inputs.upload_manifests == true run: | ./kustomize build ./manifests | sed "s/\${DIGEST}/${{ steps.build.outputs.digest }}/" > ./manifests.yaml - name: Push manifests + if: inputs.upload_manifests == true run: | flux push artifact oci://${{ env.OCI_REPO }}/manifests:${{ gitea.head_ref || gitea.ref_name }} \ --path="./manifests.yaml" \