Trying run

This commit is contained in:
alesapin 2021-09-16 13:26:45 +03:00
parent 52d6d44370
commit 1bfcbe281c
4 changed files with 4 additions and 28 deletions

View File

@ -1,24 +0,0 @@
name: 'DockerHubPush'
description: 'Action push images to dockerhub'
on: # yamllint disable-line rule:truthy
pull_request:
types:
- labeled
- unlabeled
- synchronize
- reopened
- opened
branches:
- master
runs:
steps:
- name: Check out repository code
uses: actions/checkout@v2
- name: Images check
run: cd $GITHUB_WORKSPACE/tests/ci && python3 docker_images_check.py
shell: bash
- name: Upload images files to artifacts
uses: actions/upload-artifact@v2
with:
name: changed_images
path: ${{ runner.temp }}/docker_images_check/changed_images.json

View File

@ -26,7 +26,7 @@ jobs:
- name: Check out repository code
uses: actions/checkout@v2
- name: Images check
uses: ./.github/actions/docker-hub-push
run: cd $GITHUB_WORKSPACE/tests/ci && python3 docker_images_check.py
env:
YANDEX_S3_ACCESS_KEY_ID: ${{ secrets.YANDEX_S3_ACCESS_KEY_ID }}
YANDEX_S3_ACCESS_SECRET_KEY: ${{ secrets.YANDEX_S3_ACCESS_SECRET_KEY }}

View File

@ -114,9 +114,9 @@ if __name__ == "__main__":
commit = get_commit(gh, pr_info.sha)
url = f"https://github.com/ClickHouse/ClickHouse/actions/runs/{os.getenv('GITHUB_RUN_ID')}"
if not can_run:
print("::notice ::<h1>Cannot run</h1>")
print("::notice ::**Cannot run**")
commit.create_status(context=NAME, description=description, state="failure", target_url=url)
sys.exit(1)
else:
print("::notice ::<h1>Can run</h1>")
print("::notice ::**Can run**")
commit.create_status(context=NAME, description=description, state="pending", target_url=url)

View File

@ -130,4 +130,4 @@ if __name__ == "__main__":
subprocess.check_output(f"docker run --cap-add=SYS_PTRACE --volume={repo_path}:/ClickHouse --volume={temp_path}:/test_output {docker_image}", shell=True)
state, description, test_results, additional_files = process_result(temp_path)
report_url = upload_results(s3_helper, pr_info.number, pr_info.sha, test_results, additional_files)
print("::notice ::Report url: {}".format(report_url))
print("::notice ::Report *url*: {} and one more [test]({})".format(report_url, report_url))