Skip to content

Commit

Permalink
ci: fixing comments
Browse files Browse the repository at this point in the history
  • Loading branch information
gzukel committed May 6, 2024
1 parent aa3b69d commit e2073ae
Showing 1 changed file with 31 additions and 16 deletions.
47 changes: 31 additions & 16 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
required: false
default: false
description: 'Use this to skip: gosec, gosec-cosmos, check-changelog, check-upgrade-uandler-updated, build-test, smoke-test and go straight to approval step.'
run_just_checks:
skip_release:
type: boolean
required: false
default: false
Expand All @@ -23,9 +23,18 @@ concurrency:
cancel-in-progress: false

jobs:
gosec:
check_branch:
if: ${{ github.event.inputs.skip_checks != 'true' && (startsWith(github.ref, 'refs/heads/release/v') || startsWith(github.ref, 'refs/heads/hotfix/v')) }}
runs-on: ubuntu-latest
steps:
- name: Branch
run: |
echo "${{ github.ref }}"
gosec:
needs:
- check_branch
runs-on: ubuntu-latest
env:
GO111MODULE: on
steps:
Expand Down Expand Up @@ -53,7 +62,8 @@ jobs:
echo "Check Skipped, Mark Green for Pipeline Execution"
gosec-cosmos:
if: ${{ github.event.inputs.skip_checks != 'true' && (startsWith(github.ref, 'refs/heads/release/v') || startsWith(github.ref, 'refs/heads/hotfix/v')) }}
needs:
- check_branch
runs-on: ubuntu-latest
env:
GO111MODULE: on
Expand All @@ -80,7 +90,8 @@ jobs:
echo "Check Skipped, Mark Green for Pipeline Execution"
lint:
if: ${{ github.event.inputs.skip_checks != 'true' && (startsWith(github.ref, 'refs/heads/release/v') || startsWith(github.ref, 'refs/heads/hotfix/v')) }}
needs:
- check_branch
runs-on: ubuntu-latest
timeout-minutes: 15
env:
Expand Down Expand Up @@ -112,7 +123,8 @@ jobs:
echo "Check Skipped, Mark Green for Pipeline Execution"
check-changelog:
if: ${{ github.event.inputs.skip_checks != 'true' && (startsWith(github.ref, 'refs/heads/release/v') || startsWith(github.ref, 'refs/heads/hotfix/v')) }}
needs:
- check_branch
runs-on: ubuntu-latest
steps:

Expand Down Expand Up @@ -153,7 +165,8 @@ jobs:
echo "Check Skipped, Mark Green for Pipeline Execution"
check-upgrade-handler-updated:
if: ${{ github.event.inputs.skip_checks != 'true' && (startsWith(github.ref, 'refs/heads/release/v') || startsWith(github.ref, 'refs/heads/hotfix/v')) }}
needs:
- check_branch
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
Expand Down Expand Up @@ -183,7 +196,8 @@ jobs:
echo "Check Skipped, Mark Green for Pipeline Execution"
build-test:
if: ${{ github.event.inputs.skip_checks != 'true' && (startsWith(github.ref, 'refs/heads/release/v') || startsWith(github.ref, 'refs/heads/hotfix/v')) }}
needs:
- check_branch
runs-on: buildjet-4vcpu-ubuntu-2004
timeout-minutes: 15
concurrency:
Expand Down Expand Up @@ -258,7 +272,8 @@ jobs:
echo "Check Skipped, Mark Green for Pipeline Execution"
smoke-test:
if: ${{ github.event.inputs.skip_checks != 'true' && (startsWith(github.ref, 'refs/heads/release/v') || startsWith(github.ref, 'refs/heads/hotfix/v')) }}
needs:
- check_branch
runs-on: buildjet-4vcpu-ubuntu-2204
timeout-minutes: 25
steps:
Expand Down Expand Up @@ -333,11 +348,9 @@ jobs:
run: |
echo "Check Skipped, Mark Green for Pipeline Execution"
e2e-admin-tests:
if: ${{ github.event.inputs.skip_checks != 'true' && (startsWith(github.ref, 'refs/heads/release/v') || startsWith(github.ref, 'refs/heads/hotfix/v')) }}
needs:
- check_branch
runs-on: buildjet-4vcpu-ubuntu-2204
timeout-minutes: 120
steps:
Expand All @@ -352,7 +365,8 @@ jobs:
make start-e2e-admin-test
e2e-upgrade-test:
if: ${{ github.event.inputs.skip_checks != 'true' && (startsWith(github.ref, 'refs/heads/release/v') || startsWith(github.ref, 'refs/heads/hotfix/v')) }}
needs:
- check_branch
runs-on: buildjet-4vcpu-ubuntu-2204
timeout-minutes: 120
steps:
Expand All @@ -367,9 +381,7 @@ jobs:
make start-upgrade-test
publish-release:
if: ${{ github.event.inputs.run_just_checks == 'false' }}
runs-on: buildjet-4vcpu-ubuntu-2004
timeout-minutes: 60
if: ${{ github.event.inputs.skip_release == 'false' }}
needs:
- gosec
- gosec-cosmos
Expand All @@ -380,6 +392,9 @@ jobs:
- build-test
- e2e-admin-tests
- e2e-upgrade-test
- check_branch
runs-on: buildjet-4vcpu-ubuntu-2004
timeout-minutes: 60
environment: release
steps:
- uses: actions/checkout@v3
Expand Down

0 comments on commit e2073ae

Please sign in to comment.