1
0
mirror of synced 2026-02-13 21:16:57 +00:00

Make manifests dir bundle.sh configurable

There was an assumption in this script that it is always executed in Git
repository/directory, this is however not always true, for example when
one downloads the `.tar.gz` that is made available for every release
by GitHub (and used in one of our AUR packages).

This commit changes this, and makes the first argument of `bundle.sh`
configurable, so a custom manifests directory can always be defined
_without_ relying on Git.

Omitting it, or passing an empty string, will still fall back to the
previous behavior of using `git rev-parse --show-toplevel`.

Signed-off-by: Hidde Beydals <hello@hidde.co>
This commit is contained in:
Hidde Beydals
2021-03-08 17:17:53 +01:00
parent 0328bb14ce
commit ba6da23323
2 changed files with 8 additions and 8 deletions

View File

@@ -31,7 +31,7 @@ jobs:
- name: Generate manifests
run: |
make cmd/flux/manifests
./manifests/scripts/bundle.sh ./output manifests.tar.gz
./manifests/scripts/bundle.sh "" ./output manifests.tar.gz
kustomize build ./manifests/install > ./output/install.yaml
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v1