Skip to content

Commit

Permalink
only run workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
alexey-ban committed Oct 24, 2024
1 parent b54cf9d commit 927e4e9
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 296 deletions.
53 changes: 0 additions & 53 deletions .github/workflows/create_env.yml

This file was deleted.

12 changes: 5 additions & 7 deletions .github/workflows/deploy_review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,22 @@ on:

jobs:
create_env:
uses: ./.github/workflows/create_env.yml
uses: alexey-ban/ai-dial-ci/.github/workflows/gh_env.yml@review_env
secrets: inherit
with:
environment_name: pr-${{ github.event.pull_request.number }}
environment_url: "https://chat-ai-dial-themes-pr-${{ github.event.pull_request.number }}.gke.test.epam-rail.com"

# build_review_docker:
# uses: alexey-ban/ai-dial-ci/.github/workflows/generic_docker_review.yml@main
# uses: alexey-ban/ai-dial-ci/.github/workflows/generic_docker_review.yml@review_env
# secrets: inherit
# needs:
# - create_env
# with:
# environment_name: pr-${{ github.event.pull_request.number }}

deploy_helm:
uses: ./.github/workflows/helm_deploy.yml
uses: alexey-ban/ai-dial-ci/.github/workflows/k8s_env.yml@review_env
needs:
- create_env
# - build_review_docker
Expand All @@ -31,13 +31,11 @@ jobs:
helm_values_file: "./build/helm/review.yaml"
helm_values: "global.url=ai-dial-themes-pr-${{ github.event.pull_request.number }}.gke.test.epam-rail.com"
helm_extra_args: "--set-file core.extraConfig=./build/helm/review_core.json"
# environment_name: pr-${{ github.event.pull_request.number }}

run_e2e:
uses: ./.github/workflows/e2e.yml
uses: alexey-ban/ai-dial-ci/.github/workflows/run_e2e_test@review_env
needs:
- deploy_helm
with:
url: "https://chat-ai-dial-themes-pr-${{ github.event.pull_request.number }}.gke.test.epam-rail.com"
environment_name: pr-${{ github.event.pull_request.number }}
# repository: ""
environment_name: pr-${{ github.event.pull_request.number }}
48 changes: 0 additions & 48 deletions .github/workflows/destroy_env.yml

This file was deleted.

36 changes: 31 additions & 5 deletions .github/workflows/destroy_review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,35 @@ on:
types: [closed]

jobs:
destroy_env:
uses: ./.github/workflows/destroy_env.yml
secrets: inherit
cancel-workflows:
runs-on: ubuntu-latest
steps:
- name: "Cancel Workflow"
uses: styfle/cancel-workflow-action@85880fa0301c86cca9da44039ee3bb12d3bedbfa # v0.12.1
with:
ignore_sha: true
workflow_id: "all"

delete-k8s-env:
uses: alexey-ban/ai-dial-ci/.github/workflows/k8s_env.yml@review_env
needs:
- cancel-workflows
with:
environment_name: pr-${{ github.event.pull_request.number }}
environment_destroy: true
cloud_provider: "gcp"
helm_operation: "uninstall"
k8s_namespace: ${{ github.repository_id }}-pr-${{ github.event.pull_request.number }}

delete-gh-environment:
runs-on: ubuntu-latest
needs:
- cancel-workflows
steps:
- name: Sleep to debug # need delay between cancel workflow and delete environment
run: |
sleep 10
- name: Delete Github environment
uses: strumwolf/delete-deployment-environment@a4825dd9648c57da8437a4885c3fcad58beac69c # v3.0.0
with:
token: ${{ secrets.ACTIONS_BOT_TOKEN }}
environment: pr-${{ github.event.pull_request.number }}

49 changes: 0 additions & 49 deletions .github/workflows/e2e.yml

This file was deleted.

134 changes: 0 additions & 134 deletions .github/workflows/helm_deploy.yml

This file was deleted.

0 comments on commit 927e4e9

Please sign in to comment.