Skip to content

Commit

Permalink
remove pull_request and enable jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
gurevichdmitry committed Jan 19, 2025
1 parent 850ea70 commit d82ba93
Showing 1 changed file with 24 additions and 30 deletions.
54 changes: 24 additions & 30 deletions .github/workflows/test-ech-agentless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,6 @@ run-name: Creating ECH Environment by @${{ github.actor }}

on:
workflow_dispatch:
pull_request:
branches:
- main
- "[0-9]+.[0-9]+"
- "8.x"
types: [opened, synchronize, reopened]
schedule:
- cron: '0 4 * * *' # every day at 04:00

Expand All @@ -34,28 +28,28 @@ jobs:
echo "date-name=$date_name" >> $GITHUB_OUTPUT
echo "stack-version=$STACK_VERSION" >> $GITHUB_OUTPUT
# deploy:
# needs: naming
# uses: ./.github/workflows/test-environment.yml
# secrets: inherit
# # Required for the 'Deploy' job in the 'test-environment.yml' to authenticate with Google Cloud (gcloud).
# permissions:
# contents: 'read'
# id-token: 'write'
# with:
# deployment_name: ${{ needs.naming.outputs.deployment_name }}
# elk-stack-version: ${{ needs.naming.outputs.stack_version }}
# run-sanity-tests: true
# expiration_days: 0
deploy:
needs: naming
uses: ./.github/workflows/test-environment.yml
secrets: inherit
# Required for the 'Deploy' job in the 'test-environment.yml' to authenticate with Google Cloud (gcloud).
permissions:
contents: 'read'
id-token: 'write'
with:
deployment_name: ${{ needs.naming.outputs.deployment_name }}
elk-stack-version: ${{ needs.naming.outputs.stack_version }}
run-sanity-tests: true
expiration_days: 0

# destroy_environment:
# needs: ["naming", "deploy"]
# uses: ./.github/workflows/destroy-environment.yml
# secrets: inherit
# # Required for the 'Destroy' job in the 'destroy-environment.yml'
# permissions:
# contents: 'read'
# id-token: 'write'
# if: success()
# with:
# prefix: ${{ needs.naming.outputs.deployment_name }}
destroy_environment:
needs: ["naming", "deploy"]
uses: ./.github/workflows/destroy-environment.yml
secrets: inherit
# Required for the 'Destroy' job in the 'destroy-environment.yml'
permissions:
contents: 'read'
id-token: 'write'
if: success()
with:
prefix: ${{ needs.naming.outputs.deployment_name }}

0 comments on commit d82ba93

Please sign in to comment.