Skip to content

Commit

Permalink
Cherry pick changes to release workflow (#418)
Browse files Browse the repository at this point in the history
* Use correct job name in release workflow (#413)

* Bump eventing-manager image version for 1.1.0 release

* Use correct job name in release workflow

* fix broken release workflow (#415)

* fix the setting of env var PULL_BASE_REF in `Create release` (#416)

* Correct `manager.yaml` name (#417)

* Correct `manager.yaml` name

* Correct the name of `manager.yaml` in all files

---------

Co-authored-by: Carina Kothe <[email protected]>
  • Loading branch information
friedrichwilken and grischperl authored Jan 18, 2024
1 parent 5a06dc6 commit 3c84f14
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:

create-draft:
name: Create draft release
needs: verify-head-status
needs: verify-release
runs-on: ubuntu-latest
env:
VERSION: ${{ needs.verify-release.outputs.VERSION }}
Expand All @@ -58,7 +58,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
RELEASE_ID=$(./scripts/create_draft_release.sh $VERSION
RELEASE_ID=$(./scripts/create_draft_release.sh $VERSION)
echo "release_id=$RELEASE_ID" >> $GITHUB_OUTPUT
- name: Create lightweight tag
Expand All @@ -71,7 +71,7 @@ jobs:

- name: Create and upload eventing-manager.yaml and eventing-default-cr.yaml
env:
PULL_BASE_REF: $VERSION
PULL_BASE_REF: ${{ needs.verify-release.outputs.VERSION }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
IMG: "europe-docker.pkg.dev/kyma-project/prod/eventing-manager:${VERSION}"
MODULE_REGISTRY: "europe-docker.pkg.dev/kyma-project/prod/unsigned"
Expand All @@ -81,7 +81,7 @@ jobs:
publish-release:
name: Publish release
needs: [verify-head-status, create-draft]
needs: [verify-release, create-draft]
runs-on: ubuntu-latest

steps:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ You need a Kubernetes cluster to run against. You can use [k3d](https://k3d.io/)
2. To install the latest version of the default Eventing custom resource (CR) on your cluster, run:

```bash
kubectl apply -f https://github.com/kyma-project/eventing-manager/releases/latest/download/eventing_default_cr.yaml
kubectl apply -f https://github.com/kyma-project/eventing-manager/releases/latest/download/eventing-default-cr.yaml
```

## Development
Expand Down
2 changes: 1 addition & 1 deletion scripts/cleanup_modules.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ log::banner "Deleting all API Rules"
kubectl delete --timeout=120s --wait=false -A apirules.gateway.kyma-project.io --all

log::banner "Uninstalling Eventing module"
kubectl delete --timeout=120s --ignore-not-found -f https://github.com/kyma-project/eventing-manager/releases/latest/download/eventing_default_cr.yaml
kubectl delete --timeout=120s --ignore-not-found -f https://github.com/kyma-project/eventing-manager/releases/latest/download/eventing-default-cr.yaml
make undeploy

log::banner "Uninstalling NATS module"
Expand Down
2 changes: 1 addition & 1 deletion scripts/render_and_upload_manifests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,4 @@ UPLOAD_URL="https://uploads.github.com/repos/kyma-project/eventing-manager/relea
uploadFile "eventing-manager.yaml" "${UPLOAD_URL}?name=eventing-manager.yaml"
# TODO completly remove the rendering of the module-template from the repository.
# uploadFile "module-template.yaml" "${UPLOAD_URL}?name=module-template.yaml"
uploadFile "config/samples/default.yaml" "${UPLOAD_URL}?name=eventing_default_cr.yaml"
uploadFile "config/samples/default.yaml" "${UPLOAD_URL}?name=eventing-default-cr.yaml"

0 comments on commit 3c84f14

Please sign in to comment.