Skip to content
22 changes: 22 additions & 0 deletions .github/workflows/run_nightly_tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Run Nightly Zookeeper Pipeline

permissions:
actions: write
contents: read

on:
schedule:
- cron: '0 2 * * *'

jobs:
Nightly-Zookeeper-Pipeline:
uses: Netcracker/qubership-test-pipelines/.github/workflows/zookeeper.yaml@905b88900dc8c14291eaeff4eddcf4d4f734aee1 #v1.9.0
with:
service_branch: '${{ github.head_ref || github.ref_name }}'
pipeline_branch: '905b88900dc8c14291eaeff4eddcf4d4f734aee1' #this value must match the value after '@' in 'uses'
runner_type: 'ubuntu-latest'
scope: 'nightly'
secrets:
AWS_S3_ACCESS_KEY_ID: ${{secrets.AWS_S3_ACCESS_KEY_ID}}
AWS_S3_ACCESS_KEY_SECRET: ${{secrets.AWS_S3_ACCESS_KEY_SECRET}}

47 changes: 29 additions & 18 deletions .github/workflows/run_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,42 +9,53 @@ on:
pull_request:
types: [opened, synchronize, reopened]
branches: [main]
paths-ignore:
- "docs/**"
- "CODE-OF-CONDUCT.md"
- "CONTRIBUTING.md"
- "LICENSE"
- "README.md"
- "SECURITY.md"
push:
branches: [main]
paths-ignore:
- "docs/**"
- "CODE-OF-CONDUCT.md"
- "CONTRIBUTING.md"
- "LICENSE"
- "README.md"
- "SECURITY.md"

jobs:
Wait-for-images:
runs-on: ubuntu-latest
outputs:
conclusion: ${{ steps.wait.outputs.conclusion }}
skip_tests: ${{ steps.check.outputs.skip_tests }}
steps:
- name: Check if dev_build.yml was triggered for this commit
id: check
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
if [[ "${{ github.event_name }}" == "pull_request" ]]; then
SHA="${{ github.event.pull_request.head.sha }}"
else
SHA="${{ github.sha }}"
fi
RUNS=$(gh run list --workflow dev_build.yml --repo ${{ github.repository }} --commit $SHA)
SKIP_TESTS="false"
if [ -z "$RUNS" ]; then
SKIP_TESTS="true"
fi
echo SKIP_TESTS: $SKIP_TESTS
echo "skip_tests=$SKIP_TESTS" >> $GITHUB_OUTPUT
- name: Wait for dev_build.yml to complete
uses: netcracker/qubership-workflow-hub/actions/wait-for-workflow@396774180000abdb825cbf150b56cc59c6913db8 #v2.0.5
if: steps.check.outputs.skip_tests == 'false'
uses: netcracker/qubership-workflow-hub/actions/wait-for-workflow@3e428f45132119ce49d90f3770a45d4fe1d1078d # v2.0.4
id: wait
with:
workflow: dev_build.yml
token: ${{ secrets.GITHUB_TOKEN }}
poll-interval: 20

Zookeeper-Pipeline:
needs: Wait-for-images
uses: Netcracker/qubership-test-pipelines/.github/workflows/zookeeper.yaml@0317a7311f0fdd1e6d492fb3a75d722835851b15 #v1.6.1
uses: Netcracker/qubership-test-pipelines/.github/workflows/zookeeper.yaml@905b88900dc8c14291eaeff4eddcf4d4f734aee1 #v1.9.0
permissions:
contents: read
actions: write
packages: read
with:
repository_name: ${{ github.repository }}
service_branch: '${{ github.head_ref || github.ref_name }}'
pipeline_branch: '0317a7311f0fdd1e6d492fb3a75d722835851b15' #this value must match the value after '@' in 'uses'
pipeline_branch: '905b88900dc8c14291eaeff4eddcf4d4f734aee1' #this value must match the value after '@' in 'uses'
skip_tests: ${{ fromJSON(needs.Wait-for-images.outputs.skip_tests) }}
secrets:
AWS_S3_ACCESS_KEY_ID: ${{secrets.AWS_S3_ACCESS_KEY_ID}}
AWS_S3_ACCESS_KEY_SECRET: ${{secrets.AWS_S3_ACCESS_KEY_SECRET}}
2 changes: 1 addition & 1 deletion backup-daemon/docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ghcr.io/netcracker/qubership-backup-daemon:main_alpine
FROM ghcr.io/netcracker/qubership-backup-daemon:1.30.6_alpine

ENV ZOOKEEPER_HOME=/opt/zookeeper \
ZOOKEEPER_BACKUP=/opt/zookeeper/backup-storage
Expand Down
2 changes: 1 addition & 1 deletion integration-tests/docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ghcr.io/netcracker/qubership-docker-integration-tests:main
FROM ghcr.io/netcracker/qubership-docker-integration-tests:0.4.4

# Switch to root for installation
USER root
Expand Down
2 changes: 1 addition & 1 deletion operator/charts/helm/zookeeper-service/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ groupMigration:
limits:
memory: 256Mi
cpu: 100m
image: "ghcr.io/netcracker/qubership-docker-kubectl:main"
image: "ghcr.io/netcracker/qubership-docker-kubectl:0.0.8"
imagePullPolicy: Always
runAsNonRoot: true

Expand Down
Loading