Skip to content

Commit

Permalink
disabled other jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
Mykhailo committed Aug 6, 2024
1 parent 40d02f2 commit a12c7bb
Showing 1 changed file with 52 additions and 52 deletions.
104 changes: 52 additions & 52 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,72 +8,72 @@ on:
types:
- submitted
jobs:
test_policy_flights:
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
compliance: ['red', 'green']
container:
image: python:3.8
env:
COMPLIANCE: ${{ matrix.compliance }}
if: github.event_name == 'push' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' || (github.event_name == 'pull_request_review' && github.event.review.state == 'approved')
steps:
- uses: actions/checkout@v4
- 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 }}
- uses: ./ecc-actions/flight-test-dependencies
env:
PROJECT_TOKEN: ${{ secrets.CLOUDCUSTODIAN_CORE }}
- uses: ./ecc-actions/flight-test-action
env:
COMPLIANCE: ${{ matrix.compliance }}
# test_policy_flights:
# runs-on: ubuntu-22.04
# strategy:
# fail-fast: false
# matrix:
# compliance: ['red', 'green']
# container:
# image: python:3.8
# env:
# COMPLIANCE: ${{ matrix.compliance }}
# if: github.event_name == 'push' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' || (github.event_name == 'pull_request_review' && github.event.review.state == 'approved')
# steps:
# - uses: actions/checkout@v4
# - 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 }}
# - uses: ./ecc-actions/flight-test-dependencies
# env:
# PROJECT_TOKEN: ${{ secrets.CLOUDCUSTODIAN_CORE }}
# - uses: ./ecc-actions/flight-test-action
# env:
# COMPLIANCE: ${{ matrix.compliance }}

build:
name: create_release
runs-on: ubuntu-latest
needs: [test_policy_flights]
if: startsWith(github.ref, 'refs/tags/v')
steps:
- name: Checkout code
uses: actions/checkout@v4
# build:
# name: create_release
# runs-on: ubuntu-latest
# needs: [test_policy_flights]
# if: startsWith(github.ref, 'refs/tags/v')
# steps:
# - name: Checkout code
# uses: actions/checkout@v4

- 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: 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: Create wiki
uses: ./ecc-actions/generate-list-of-rules
# - name: Create wiki
# uses: ./ecc-actions/generate-list-of-rules

- name: Release action
uses: ./ecc-actions/release-rulepack-action
with:
token: ${{ github.token }}
tag: ${{ github.ref_name }}
# - name: Release action
# uses: ./ecc-actions/release-rulepack-action
# 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'
# 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
run: git clone -b fix/ruleset_deploy_action "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'
# 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
# - 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 a12c7bb

Please sign in to comment.