diff --git a/.github/workflows/publish-img.yaml b/.github/workflows/publish-img.yaml index c6bdd2b6..564a4e7d 100644 --- a/.github/workflows/publish-img.yaml +++ b/.github/workflows/publish-img.yaml @@ -59,7 +59,7 @@ jobs: - name: Template release manifests if: startsWith(github.ref, 'refs/tags/') - run: IMG=${{ github.ref_name }} make build-installer + run: IMG=ghcr.io/${{ github.repository }}:${{ github.ref_name }} make build-installer - name: Release the kraken uses: softprops/action-gh-release@v1 diff --git a/Makefile b/Makefile index 2492b16b..b8fe9c89 100644 --- a/Makefile +++ b/Makefile @@ -118,10 +118,7 @@ docker-buildx: ## Build and push docker image for the manager for cross-platform .PHONY: build-installer build-installer: manifests generate kustomize ## Generate a consolidated YAML with CRDs and deployment. mkdir -p dist - @if [ -d "config/crd" ]; then \ - $(KUSTOMIZE) build config/crd > dist/install.yaml; \ - fi - echo "---" >> dist/install.yaml # Add a document separator before appending + echo "---" > dist/install.yaml # Add a document separator before appending cd config/manager && $(KUSTOMIZE) edit set image controller=${IMG} $(KUSTOMIZE) build config/default >> dist/install.yaml diff --git a/dist/install.yaml b/dist/install.yaml index fda523ab..335eae9b 100644 --- a/dist/install.yaml +++ b/dist/install.yaml @@ -1,4 +1,3 @@ - --- apiVersion: v1 kind: Namespace