Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/versions.yaml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.0.4
2.1.1
40 changes: 20 additions & 20 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,26 +6,26 @@ permissions:
on:
release:
types: [created]
# push:
# branches:
# - '**'
# paths-ignore:
# - 'docs/**'
# - 'CODE-OF-CONDUCT.md'
# - 'CONTRIBUTING.md'
# - 'LICENSE'
# - 'README.md'
# - 'SECURITY.md'
# pull_request:
# branches:
# - '**'
# paths-ignore:
# - 'docs/**'
# - 'CODE-OF-CONDUCT.md'
# - 'CONTRIBUTING.md'
# - 'LICENSE'
# - 'README.md'
# - 'SECURITY.md'
push:
branches:
- '**'
paths-ignore:
- 'docs/**'
- 'CODE-OF-CONDUCT.md'
- 'CONTRIBUTING.md'
- 'LICENSE'
- 'README.md'
- 'SECURITY.md'
pull_request:
branches:
- '**'
paths-ignore:
- 'docs/**'
- 'CODE-OF-CONDUCT.md'
- 'CONTRIBUTING.md'
- 'LICENSE'
- 'README.md'
- 'SECURITY.md'

env:
TAG_NAME: ${{ github.event.release.tag_name || github.ref }}
Expand Down
27 changes: 20 additions & 7 deletions .github/workflows/run_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,34 +4,47 @@ permissions:
contents: read

on:
pull_request:
types: [opened, synchronize, reopened]
branches: [main]
pull_request:
types: [opened, synchronize, reopened]
branches: [main]

jobs:
Wait-for-images:
runs-on: ubuntu-latest
outputs:
conclusion: ${{ steps.wait.outputs.conclusion }}
steps:
- name: Wait for push.yml to complete
uses: netcracker/qubership-workflow-hub/actions/wait-for-workflow@main
id: wait
with:
workflow: push.yml
token: ${{ secrets.GITHUB_TOKEN }}
poll-interval: 20
start-self-hosted-runner:
needs: Wait-for-images
if: ${{ needs.Wait-for-images.outputs.conclusion }} == 'success'
uses: Netcracker/qubership-terraform-hub/.github/workflows/ec2-control.yml@main
with:
instance_id: ${{ vars.AWS_GITHUB_RUNNER_ID }}
action: 'start'
secrets:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}

Opensearch-Pipeline:
needs: start-self-hosted-runner
uses: Netcracker/qubership-test-pipelines/.github/workflows/opensearch.yaml@e75a24c6a1e5d843de60674e9a395ecb003f5cf3
uses: Netcracker/qubership-test-pipelines/.github/workflows/opensearch.yaml@v1.0.1
with:
service_branch: '${{ github.head_ref || github.ref_name }}'
versions_file: '.github/versions.yaml'
pipeline_branch: 'e75a24c6a1e5d843de60674e9a395ecb003f5cf3' #this value must match the value after '@' in 'uses'
pipeline_branch: 'v1.0.1' #this value must match the value after '@' in 'uses'
runner_type: 'self-hosted'
secrets:
AWS_S3_ACCESS_KEY_ID: ${{secrets.AWS_S3_ACCESS_KEY_ID}}
AWS_S3_ACCESS_KEY_SECRET: ${{secrets.AWS_S3_ACCESS_KEY_SECRET}}

stop-self-hosted-runner:
needs: Opensearch-Pipeline
if: always()
uses: Netcracker/qubership-terraform-hub/.github/workflows/ec2-control.yml@main
with:
instance_id: ${{ vars.AWS_GITHUB_RUNNER_ID }}
Expand Down
Loading