Skip to content
Merged
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
128 changes: 64 additions & 64 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,66 +1,66 @@
name: ReleaseWorkflow
# - Gets artifacts from S3
# - Sends it to JFROG Artifactory
# - Adds them to the release assets
# name: ReleaseWorkflow
# # - Gets artifacts from S3
# # - Sends it to JFROG Artifactory
# # - Adds them to the release assets

on: # yamllint disable-line rule:truthy
release:
types:
- published
# on: # yamllint disable-line rule:truthy
# release:
# types:
# - published

jobs:
ReleasePublish:
runs-on: [self-hosted, style-checker]
steps:
- name: Set envs
run: |
cat >> "$GITHUB_ENV" << 'EOF'
JFROG_API_KEY=${{ secrets.JFROG_KEY_API_PACKAGES }}
TEMP_PATH=${{runner.temp}}/release_packages
REPO_COPY=${{runner.temp}}/release_packages/ClickHouse
EOF
- name: Check out repository code
uses: actions/checkout@v2
with:
# Always use the most recent script version
ref: master
- name: Download packages and push to Artifactory
run: |
rm -rf "$TEMP_PATH" && mkdir -p "$TEMP_PATH"
cp -r "$GITHUB_WORKSPACE" "$TEMP_PATH"
cd "$REPO_COPY"
python3 ./tests/ci/push_to_artifactory.py --release "${{ github.ref }}" \
--commit '${{ github.sha }}' --all
- name: Upload packages to release assets
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ${{runner.temp}}/push_to_artifactory/*
overwrite: true
tag: ${{ github.ref }}
file_glob: true
############################################################################################
##################################### Docker images #######################################
############################################################################################
DockerServerImages:
runs-on: [self-hosted, style-checker]
steps:
- name: Clear repository
run: |
sudo rm -fr "$GITHUB_WORKSPACE" && mkdir "$GITHUB_WORKSPACE"
- name: Check out repository code
uses: actions/checkout@v2
with:
fetch-depth: 0 # otherwise we will have no version info
- name: Check docker clickhouse/clickhouse-server building
run: |
cd "$GITHUB_WORKSPACE/tests/ci"
python3 docker_server.py --release-type auto --version "${{ github.ref }}"
python3 docker_server.py --release-type auto --version "${{ github.ref }}" --no-ubuntu \
--image-repo clickhouse/clickhouse-keeper --image-path docker/keeper
- name: Cleanup
if: always()
run: |
docker kill "$(docker ps -q)" ||:
docker rm -f "$(docker ps -a -q)" ||:
sudo rm -fr "$TEMP_PATH"
# jobs:
# ReleasePublish:
# runs-on: [self-hosted, style-checker]
# steps:
# - name: Set envs
# run: |
# cat >> "$GITHUB_ENV" << 'EOF'
# JFROG_API_KEY=${{ secrets.JFROG_KEY_API_PACKAGES }}
# TEMP_PATH=${{runner.temp}}/release_packages
# REPO_COPY=${{runner.temp}}/release_packages/ClickHouse
# EOF
# - name: Check out repository code
# uses: actions/checkout@v2
# with:
# # Always use the most recent script version
# ref: master
# - name: Download packages and push to Artifactory
# run: |
# rm -rf "$TEMP_PATH" && mkdir -p "$TEMP_PATH"
# cp -r "$GITHUB_WORKSPACE" "$TEMP_PATH"
# cd "$REPO_COPY"
# python3 ./tests/ci/push_to_artifactory.py --release "${{ github.ref }}" \
# --commit '${{ github.sha }}' --all
# - name: Upload packages to release assets
# uses: svenstaro/upload-release-action@v2
# with:
# repo_token: ${{ secrets.GITHUB_TOKEN }}
# file: ${{runner.temp}}/push_to_artifactory/*
# overwrite: true
# tag: ${{ github.ref }}
# file_glob: true
# ############################################################################################
# ##################################### Docker images #######################################
# ############################################################################################
# DockerServerImages:
# runs-on: [self-hosted, style-checker]
# steps:
# - name: Clear repository
# run: |
# sudo rm -fr "$GITHUB_WORKSPACE" && mkdir "$GITHUB_WORKSPACE"
# - name: Check out repository code
# uses: actions/checkout@v2
# with:
# fetch-depth: 0 # otherwise we will have no version info
# - name: Check docker clickhouse/clickhouse-server building
# run: |
# cd "$GITHUB_WORKSPACE/tests/ci"
# python3 docker_server.py --release-type auto --version "${{ github.ref }}"
# python3 docker_server.py --release-type auto --version "${{ github.ref }}" --no-ubuntu \
# --image-repo clickhouse/clickhouse-keeper --image-path docker/keeper
# - name: Cleanup
# if: always()
# run: |
# docker kill "$(docker ps -q)" ||:
# docker rm -f "$(docker ps -a -q)" ||:
# sudo rm -fr "$TEMP_PATH"
11 changes: 7 additions & 4 deletions .github/workflows/release_branches.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,13 @@ on: # yamllint disable-line rule:truthy
- opened
branches:
- '**/22.3*'
push:
branches:
# Anything/22.3 (e.g customizations/22.3)
- '**/22.3*'
release:
types:
- published
# push:
# branches:
# # Anything/22.3 (e.g customizations/22.3)
# - '**/22.3*'

jobs:
DockerHubPushAarch64:
Expand Down
2 changes: 0 additions & 2 deletions tests/ci/build_report_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,8 +286,6 @@ def main():
if some_builds_are_missing:
addition = f"({len(build_reports)} of {required_builds} builds are OK)"

description = f"{ok_builds}/{total_builds} builds are OK {addition}"

description = f"{ok_groups}/{total_groups} artifact groups are OK {addition}"

commit = get_commit(gh, pr_info.sha)
Expand Down