Skip to content

Commit

Permalink
upd: add ruleset release job
Browse files Browse the repository at this point in the history
  • Loading branch information
Mykhailo committed Aug 6, 2024
1 parent ab408d5 commit 810169f
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,26 @@ jobs:
with:
token: ${{ github.token }}
tag: ${{ github.ref_name }}

ruleset_release:
name: ruleset_release
runs-on: ubuntu-latest
needs: [test_policy_flights]
if: startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/main'
steps:
- name: Checkout ecc-actions
run: git clone -b main "https://git:$PROJECT_TOKEN@git.epam.com/epmc-sec/cloudlab/cloud_custodian/ecc-actions.git" ecc-actions
env:
PROJECT_TOKEN: ${{ secrets.ECC_CHANGELOG_ACTION }}
- name: Release ruleset on QA
uses: ./ecc-actions/release-ruleset-action
if: github.ref == 'refs/heads/main'
env:
C7N_CREDS: ${{ secrets.C7N_CREDS }}
C7N_ENV: QA
- name: Release ruleset on PROD
uses: ./ecc-actions/release-ruleset-action
if: startsWith(github.ref, 'refs/tags/v')
with:
C7N_CREDS: ${{ secrets.C7N_CREDS }}
C7N_ENV: PROD

0 comments on commit 810169f

Please sign in to comment.