forked from kyma-project/eventing-publisher-proxy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Release workflow (kyma-project#32)"
This reverts commit 9afd151.
- Loading branch information
1 parent
7ee4172
commit 9108736
Showing
8 changed files
with
1 addition
and
349 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,91 +0,0 @@ | ||
name: Create Release | ||
run-name: Create Release ${{ github.ref_name }} | ||
|
||
env: | ||
IMAGE_REPO: europe-docker.pkg.dev/kyma-project/prod/eventing-publisher-proxy | ||
|
||
on: workflow_dispatch | ||
|
||
jobs: | ||
verify-release: | ||
name: Verify image version | ||
runs-on: ubuntu-latest | ||
outputs: | ||
release_version: ${{ steps.release-version.outputs.release_version }} | ||
steps: | ||
- name: Checkout EPP repository | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Verify that the current branch has a name that starts with 'release-' | ||
run: | | ||
CURRENT_BRANCH=$(git rev-parse --abbrev-ref HEAD) | ||
if [[ "$CURRENT_BRANCH" == release-* ]]; then | ||
echo "current_branch=$CURRENT_BRANCH" >> $GITHUB_ENV | ||
echo "Branch name starts with 'release-'." | ||
else | ||
echo "Branch name does not start with 'release-'." | ||
exit 1 | ||
fi | ||
- name: Get the next release version | ||
id: release-version | ||
run: | | ||
RELEASE_VERSION=$(./scripts/get_next_release_version.sh "$current_branch") | ||
echo "release_version=$RELEASE_VERSION" >> $GITHUB_OUTPUT | ||
- name: Check if tags in sec_scanners_config.yaml match the release version | ||
env: | ||
RELEASE_VERSION: ${{ steps.release-version.outputs.release_version }} | ||
run: ./scripts/check_tags_in_sec_scanners_config.sh $RELEASE_VERSION | ||
|
||
create-draft: | ||
name: Create the draft release | ||
needs: verify-release | ||
runs-on: ubuntu-latest | ||
env: | ||
RELEASE_VERSION: ${{ needs.verify-release.outputs.release_version }} | ||
outputs: | ||
release_id: ${{ steps.create-draft.outputs.release_id }} | ||
steps: | ||
- name: Checkout EPP repository | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Create changelog | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: ./scripts/create_changelog.sh $RELEASE_VERSION | ||
|
||
- name: Create the draft release | ||
id: create-draft | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
RELEASE_ID=$(./scripts/create_draft_release.sh $RELEASE_VERSION) | ||
echo "release_id=$RELEASE_ID" >> $GITHUB_OUTPUT | ||
- name: Add lightweight tag to trigger release EPP build job | ||
run: | | ||
git tag $RELEASE_VERSION | ||
git push origin $RELEASE_VERSION | ||
- name: Verify build job status | ||
run: ./scripts/verify_prow_post_job_status.sh ${{ github.ref_name }} 600 10 30 | ||
|
||
publish-release: | ||
name: Publish release | ||
needs: [verify-release, create-draft] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Publish release | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: ./scripts/publish_release.sh ${{ needs.create-draft.outputs.release_id }} | ||
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters