Skip to content

Commit

Permalink
Make sure the IMG is passed to goreleaser step
Browse files Browse the repository at this point in the history
  • Loading branch information
Danil-Grigorev committed Nov 15, 2023
1 parent 9f99e20 commit eae4e5b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
run: |
echo "OWNER=$(echo $GITHUB_ACTOR | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV
- name: Set IMG value
run: echo IMG=ghcr.io/${{ env.OWNER }}/rancher-backend:${{ github.ref_name }} >> $GITHUB_ENV
run: echo "IMG=ghcr.io/${{ env.OWNER }}/rancher-backend:${{ github.ref_name }}" >> $GITHUB_ENV
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v3
with:
Expand All @@ -37,6 +37,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
KREW_GITHUB_TOKEN: ${{ secrets.KREW_GITHUB_TOKEN }}
IMG: ${{ env.IMG }}
- uses: cytopia/upload-artifact-retry-action@v0.1.2
if: ${{ always() }}
with:
Expand Down
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ undeploy: ## Undeploy controller from the K8s cluster specified in ~/.kube/confi

.PHONY: release-manifests
release-manifests: kustomize $(KUSTOMIZE) yq $(RELEASE_DIR) ## Builds the manifests to publish with a release
cd config/manager && $(KUSTOMIZE) edit set image controller=${IMG}
$(KUSTOMIZE) build config/default > $(RELEASE_DIR)/rancher-backend.yaml
cd $(RELEASE_DIR) && $(HACK_DIR)/yq-split.sh $(YQ) rancher-backend.yaml
rm $(RELEASE_DIR)/rancher-backend.yaml
Expand Down

0 comments on commit eae4e5b

Please sign in to comment.