Skip to content

Commit

Permalink
Merge pull request #87 from authzed/fixkust
Browse files Browse the repository at this point in the history
gha: fix kustomize build
  • Loading branch information
ecordell authored Mar 19, 2024
2 parents a2c9333 + 2e391bc commit 3302f96
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,16 @@ jobs:
# the release directory is gitignored, which keeps goreleaser from
# complaining about a dirty tree
- name: "Copy manifests to release directory"
run: |
mkdir release
cp -R deploy release
- name: "Set operator image in release manifests"
run: mkdir release && cp -R deploy release
- name: "Set image in release manifests"
uses: "mikefarah/yq@master"
with:
cmd: |
yq eval '.images[0].newName="ghcr.io/${{github.repository_owner}}/${{github.event.repository.name}}"' -i ./release/deploy/kustomization.yaml
- name: "Set tag in release manifests"
uses: "mikefarah/yq@master"
with:
cmd: |
yq eval '.images[0].newTag="${{ github.ref_name }}"' -i ./release/deploy/kustomization.yaml
- name: "Build release bundle.yaml"
uses: "karancode/kustomize-github-action@master"
Expand Down

0 comments on commit 3302f96

Please sign in to comment.