Skip to content

Commit 3302f96

Browse files
authored
Merge pull request #87 from authzed/fixkust
gha: fix kustomize build
2 parents a2c9333 + 2e391bc commit 3302f96

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/release.yaml

+6-4
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,16 @@ jobs:
2525
# the release directory is gitignored, which keeps goreleaser from
2626
# complaining about a dirty tree
2727
- name: "Copy manifests to release directory"
28-
run: |
29-
mkdir release
30-
cp -R deploy release
31-
- name: "Set operator image in release manifests"
28+
run: mkdir release && cp -R deploy release
29+
- name: "Set image in release manifests"
3230
uses: "mikefarah/yq@master"
3331
with:
3432
cmd: |
3533
yq eval '.images[0].newName="ghcr.io/${{github.repository_owner}}/${{github.event.repository.name}}"' -i ./release/deploy/kustomization.yaml
34+
- name: "Set tag in release manifests"
35+
uses: "mikefarah/yq@master"
36+
with:
37+
cmd: |
3638
yq eval '.images[0].newTag="${{ github.ref_name }}"' -i ./release/deploy/kustomization.yaml
3739
- name: "Build release bundle.yaml"
3840
uses: "karancode/kustomize-github-action@master"

0 commit comments

Comments
 (0)