Skip to content

Commit

Permalink
fix: the image tag with kustomize build (#67)
Browse files Browse the repository at this point in the history
Co-authored-by: rick <[email protected]>
  • Loading branch information
LinuxSuRen and LinuxSuRen authored Jan 14, 2023
1 parent e263456 commit 5a874cc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ jobs:
- name: Generate Kustomize
run: |
curl -s "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh" | bash
currentdir=$(pwd)
cd k8s/config/default
${currentdir}/kustomize edit set image ghcr.io/linuxsuren/mirrors/controller:${GITHUB_REF#refs/tags/}
cd ${currentdir}
./kustomize build k8s/config/default > release/controller.yaml
- name: Release
uses: softprops/action-gh-release@v1
Expand Down

0 comments on commit 5a874cc

Please sign in to comment.