Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release workflow #32

Merged
merged 10 commits into from
Jan 5, 2024

Conversation

grischperl
Copy link
Contributor

@grischperl grischperl commented Jan 3, 2024

Description

Add Github Action to create a release.

Changes proposed in this pull request:

  • Triggered manually without inputs
  • Uses branch name release-x.y as input for release version x.y.z

Related issue(s)

kyma/#18477

@grischperl grischperl requested review from the1bit and a team as code owners January 3, 2024 09:29
@grischperl grischperl requested a review from muralov January 3, 2024 09:29
@kyma-bot kyma-bot added cla: yes Indicates the PR's author has signed the CLA. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Jan 3, 2024
scripts/check_tag_info.sh Outdated Show resolved Hide resolved
.github/workflows/create-release.yaml Outdated Show resolved Hide resolved
.github/workflows/create-release.yaml Outdated Show resolved Hide resolved
@k15r k15r mentioned this pull request Jan 10, 2024
17 tasks
scripts/check_tag_info.sh Outdated Show resolved Hide resolved
.github/workflows/create-release.yaml Outdated Show resolved Hide resolved
.github/workflows/create-release.yaml Outdated Show resolved Hide resolved
scripts/create_changelog.sh Show resolved Hide resolved
scripts/create_draft_release.sh Outdated Show resolved Hide resolved
.github/workflows/create-release.yaml Outdated Show resolved Hide resolved
.github/workflows/create-release.yaml Outdated Show resolved Hide resolved
scripts/verify_status.sh Outdated Show resolved Hide resolved
run: |
CURRENT_BRANCH=$(git rev-parse --abbrev-ref HEAD)
if [[ "$CURRENT_BRANCH" == release-* ]]; then
echo "current_branch=$CURRENT_BRANCH" >> $GITHUB_ENV
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not simply

Suggested change
echo "current_branch=$CURRENT_BRANCH" >> $GITHUB_ENV
echo "$CURRENT_BRANCH" >> $GITHUB_ENV

and use $CURRENT_BRANCH" in the following steps?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh, I understand now.

@kyma-bot kyma-bot added the lgtm Looks good to me! label Jan 5, 2024
@kyma-bot kyma-bot merged commit e9e8644 into kyma-project:main Jan 5, 2024
7 checks passed
kyma-bot pushed a commit that referenced this pull request Jan 5, 2024
* Setup E2E test using NATS Backend (#30)

* Setup E2E github action flow

* Move hack Makefile

* Move ci folder outside of e2e

* Correct makefile path

* Add missing step to e2e flow to checkout repo

* Correct path in Makefile

* Add kustomize to Makefile

* Add kustomization

* Add LOCALBIN variable

* Add k3d cluster create step

* Remove go step

* Add missing variables to Makefile

* Add kyma script

* Make script executable

* Checkout EM repositry

* Correct repository checkout

* Use EM repo for e2e tests

* Remove hack/Makefile

* Replace make command with local one

* Try adding sudo for `permission denied` problem

* Try using `kyma` instead of variable

* Try using explicit path

* Use different make targets to deploy EM

* Update image

* Fix reference of variable

* Add step to create namespace

* Fix Github token

* Fix make calls in workflow

* Add step to install NATS

* Try to use Github variable

* Deploy nats manager via makefile

* Add step to install NATS CR

* Fix reference of variable

* Try using `create-k3d` from `eventing-manager` repo

* Change KYMA_CLI path

* Undo variable changes

* Remove unused files

* Add clean-up step
Fix capitalisation

* Improve patch command by using `jq`

* Add missing path to cleanup command

* Try using `MODULE_VERSION` from EM Repo

* Echo Module Version
Use rel version for nats manager

* Print deployment image

* Fix kubectl command

* Try to use string

* Try using `yg` to extract version

* Fix command

* Use `grep` instead of `yq`

* Use curl to get latest release of NM

* Use `curl` to get EM latest release
Use `latest` for NM

* Use NM image used in release

* Use `kubectl apply` to deploy latest NATS and Eventing Manager

* Remove step to test EM setup

* Remove unused variable

* Check for pod rollout

* Add missing `$` to variable

* Wait for rollout to complete

* Add step to check for success of EPP image update

* Replace `k` with `kubectl`

* Release workflow (#32)

* Release workflow

* Rename to `sec-scan`

* Fix all variables to `eventing-publisher-proxy`

* Fix output of next release version

* Fix run name to branch name
Use correct script in `Get the next release version` step
Add lines between steps

* Use correct image in `sec-scanners-config`

* Use env variable for using job output
Move `outputs` at beginning of step for readability

* Rename scripts to be more descriptive
Rename steps to be more clear

* Use script with more comments

* Add release flow (#31)

* Add release flow

* Release using branch name as input

* Fix `needs` input

* Fix `needs` input

* Change workflow to be triggered manually

* No inputs for manual trigger

* Release workflow

* Remove unused scripts
@grischperl grischperl modified the milestone: 1.0.0 Jan 9, 2024
grischperl added a commit to grischperl/eventing-publisher-proxy that referenced this pull request Jan 9, 2024
* Release workflow

* Rename to `sec-scan`

* Fix all variables to `eventing-publisher-proxy`

* Fix output of next release version

* Fix run name to branch name
Use correct script in `Get the next release version` step
Add lines between steps

* Use correct image in `sec-scanners-config`

* Use env variable for using job output
Move `outputs` at beginning of step for readability

* Rename scripts to be more descriptive
Rename steps to be more clear

* Use script with more comments
grischperl added a commit to grischperl/eventing-publisher-proxy that referenced this pull request Jan 9, 2024
kyma-bot pushed a commit that referenced this pull request Jan 9, 2024
* Add e2e testing documentation

* Implement review comments

* Implement review comment

* Release workflow (#32)

* Release workflow

* Rename to `sec-scan`

* Fix all variables to `eventing-publisher-proxy`

* Fix output of next release version

* Fix run name to branch name
Use correct script in `Get the next release version` step
Add lines between steps

* Use correct image in `sec-scanners-config`

* Use env variable for using job output
Move `outputs` at beginning of step for readability

* Rename scripts to be more descriptive
Rename steps to be more clear

* Use script with more comments

* Fix referencing of output variable (#35)

* Implement review comments

* Revert "Release workflow (#32)"

This reverts commit 9afd151.

* Revert "Fix referencing of output variable (#35)"

This reverts commit 18cd0ad.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes Indicates the PR's author has signed the CLA. lgtm Looks good to me! size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Setup pipelines for EPP
3 participants