Skip to content

Commit

Permalink
Revert "Release workflow (kyma-project#32)"
Browse files Browse the repository at this point in the history
This reverts commit 9afd151.
  • Loading branch information
grischperl committed Jan 9, 2024
1 parent 7ee4172 commit 9108736
Show file tree
Hide file tree
Showing 8 changed files with 1 addition and 349 deletions.
91 changes: 0 additions & 91 deletions .github/workflows/create-release.yaml
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 }}
32 changes: 0 additions & 32 deletions scripts/check_tags_in_sec_scanners_config.sh

This file was deleted.

56 changes: 0 additions & 56 deletions scripts/create_changelog.sh

This file was deleted.

40 changes: 0 additions & 40 deletions scripts/create_draft_release.sh

This file was deleted.

31 changes: 0 additions & 31 deletions scripts/get_next_release_version.sh

This file was deleted.

23 changes: 0 additions & 23 deletions scripts/publish_release.sh

This file was deleted.

75 changes: 0 additions & 75 deletions scripts/verify_prow_post_job_status.sh

This file was deleted.

2 changes: 1 addition & 1 deletion sec-scanners-config.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module-name: eventing-publisher-proxy
rc-tag: 0.0.0
protecode:
- europe-docker.pkg.dev/kyma-project/prod/eventing-publisher-proxy:0.0.0
- europe-docker.pkg.dev/kyma-project/prod/event-publisher-proxy:v20231025-3f5d1600
whitesource:
language: golang-mod
subprojects: false
Expand Down

0 comments on commit 9108736

Please sign in to comment.