ClickHouse/.github/workflows/release.yml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

42 lines
1.6 KiB
YAML
Raw Normal View History

name: PublishedReleaseCI
2022-01-12 17:12:01 +00:00
# - Gets artifacts from S3
# - Sends it to JFROG Artifactory
# - Adds them to the release assets
on: # yamllint disable-line rule:truthy
release:
types:
- published
jobs:
ReleasePublish:
runs-on: [self-hosted, style-checker]
steps:
- name: Deploy packages and assets
2022-01-12 17:12:01 +00:00
run: |
GITHUB_TAG="${GITHUB_REF#refs/tags/}"
curl '${{ secrets.PACKAGES_RELEASE_URL }}/release/'"${GITHUB_TAG}"'?binary=binary_darwin&binary=binary_darwin_aarch64&sync=true' -d ''
2022-04-01 10:35:52 +00:00
############################################################################################
##################################### Docker images #######################################
############################################################################################
DockerServerImages:
runs-on: [self-hosted, style-checker]
steps:
- name: Check out repository code
2022-12-23 16:54:19 +00:00
uses: ClickHouse/checkout@v1
2022-04-01 10:35:52 +00:00
with:
clear-repository: true
2022-04-01 10:35:52 +00:00
fetch-depth: 0 # otherwise we will have no version info
- name: Check docker clickhouse/clickhouse-server building
run: |
cd "$GITHUB_WORKSPACE/tests/ci"
2022-04-07 10:23:15 +00:00
python3 docker_server.py --release-type auto --version "${{ github.ref }}"
python3 docker_server.py --release-type auto --version "${{ github.ref }}" --no-ubuntu \
2022-04-01 10:35:52 +00:00
--image-repo clickhouse/clickhouse-keeper --image-path docker/keeper
- name: Cleanup
if: always()
run: |
docker ps --quiet | xargs --no-run-if-empty docker kill ||:
docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
2022-04-01 10:35:52 +00:00
sudo rm -fr "$TEMP_PATH"