Skip to content

Commit

Permalink
Move create tag job earlier in the workflow (kyma-project#301)
Browse files Browse the repository at this point in the history
  • Loading branch information
MichalKalke authored Oct 18, 2024
1 parent d578074 commit f4ef0ae
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 18 deletions.
39 changes: 21 additions & 18 deletions .github/workflows/promote-to-release-channel.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,26 @@ env:

jobs:

create-tag:
name: Create tag
needs: upgrade-images
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.ref_name }} # fetching the latest changes (incl. the commit from previous job) from branch name

- name: Create lightweight tag
run: |
git tag ${{ github.event.inputs.new_warden_tag }}
git push origin ${{ github.event.inputs.new_warden_tag }}
- name: Verify job status
run: ./.github/scripts/verify-release-builds.sh ${{ github.ref_name }}

upgrade-images:
name: Bump warden images references
runs-on: ubuntu-latest
Expand Down Expand Up @@ -65,24 +85,7 @@ jobs:
git commit --allow-empty -m "upgrade dependencies"
git push origin ${{ github.ref_name }}
create-tag:
name: Create tag
needs: upgrade-images
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.ref_name }} # fetching the latest changes (incl. the commit from previous job) from branch name

- name: Create lightweight tag
run: |
git tag ${{ github.event.inputs.new_warden_tag }}
git push origin ${{ github.event.inputs.new_warden_tag }}
- name: Verify prow release jobs
- name: Verify job status
run: ./.github/scripts/verify-release-builds.sh ${{ github.ref_name }}

promote-warden:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,5 @@ jobs:

upgrades:
needs: builds
secrets: inherit
uses: ./.github/workflows/_upgrade-test.yaml

0 comments on commit f4ef0ae

Please sign in to comment.