diff --git a/.ci/docker/Makefile b/.ci/docker/Makefile index ff876c93a..eb4d14777 100644 --- a/.ci/docker/Makefile +++ b/.ci/docker/Makefile @@ -48,9 +48,9 @@ test-%: prepare-test ## Run the tests for the specific app push-%: prepare-test ## Push the Docker image to the docker.elastic.co repository docker push "docker.elastic.co/observability-ci/$*" -all-push: push-gren push-yamllint push-shellcheck push-codecov push-apache-ant## Push all Docker images to the docker.elastic.co repository +all-push: push-gren push-yamllint push-shellcheck push-codecov push-apache-ant push-github-label-sync ## Push all Docker images to the docker.elastic.co repository -all-tests: test-gren test-yamllint test-shellcheck test-codecov test-apache-ant## Run the tests for all the apps +all-tests: test-gren test-yamllint test-shellcheck test-codecov test-apache-ant test-github-label-sync ## Run the tests for all the apps clean: ## Clean autogenerated files/folders @rm -rf bats-core diff --git a/.ci/docker/github-label-sync/Dockerfile b/.ci/docker/github-label-sync/Dockerfile new file mode 100644 index 000000000..c83f3b829 --- /dev/null +++ b/.ci/docker/github-label-sync/Dockerfile @@ -0,0 +1,5 @@ +FROM node:15.5.0-alpine3.12 + +RUN npm install github-label-sync@2.0.0 -g +WORKDIR /app +ENTRYPOINT [ "/usr/local/bin/github-label-sync" ] diff --git a/.ci/schedule-weekly.groovy b/.ci/schedule-weekly.groovy index 3c8dc54f8..fe51f536c 100644 --- a/.ci/schedule-weekly.groovy +++ b/.ci/schedule-weekly.groovy @@ -45,6 +45,17 @@ pipeline { runWatcher(watcher: 'report-beats-top-failing-tests-weekly-7-release', subject: "[7-release] ${env.YYYY_MM_DD}: Top failing Beats tests - last 7 days", sendEmail: true, to: 'beats-contrib@elastic.co') } } + stage('Update Labels') { + agent { label 'linux && immutable' } + steps { + git("https://github.com/elastic/observability-dev.git") + dir('.github/labels') { + withCredentials([string(credentialsId: '2a9602aa-ab9f-4e52-baf3-b71ca88469c7', variable: 'GITHUB_TOKEN')]) { + sh 'github-labels-sync.sh "${GITHUB_TOKEN}"' + } + } + } + } } post { cleanup {