forked from ClickHouse/ClickHouse
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #377 from Altinity/customizations/23.8.11
23.8.11 Pre-release
- Loading branch information
Showing
128 changed files
with
2,272 additions
and
2,280 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: Docker setup | ||
description: Setup docker | ||
inputs: | ||
nested_job: | ||
description: the fuse for unintended use inside of the reusable callable jobs | ||
default: true | ||
type: boolean | ||
DOCKER_USERNAME: | ||
description: username for the dockerhub login | ||
required: true | ||
type: string | ||
DOCKER_PASSWORD: | ||
description: password for the dockerhub login | ||
required: true | ||
type: string | ||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Docker IPv6 configuration | ||
shell: bash | ||
run: | | ||
# make sure docker uses proper IPv6 config | ||
sudo touch /etc/docker/daemon.json | ||
sudo chown ubuntu:ubuntu /etc/docker/daemon.json | ||
sudo cat <<EOT > /etc/docker/daemon.json | ||
{ | ||
"ipv6": true, | ||
"fixed-cidr-v6": "2001:3984:3989::/64" | ||
} | ||
EOT | ||
sudo chown root:root /etc/docker/daemon.json | ||
sudo systemctl restart docker | ||
sudo systemctl status docker | ||
- name: Docker login | ||
shell: bash | ||
run: | | ||
docker login -u ${{ inputs.DOCKER_USERNAME }} -p ${{ inputs.DOCKER_PASSWORD }} | ||
docker info |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/bash | ||
# Execute command until exitcode is 0 or | ||
# maximum number of retries is reached | ||
# Example: | ||
# ./retry <retries> <delay> <command> | ||
retries=$1 | ||
delay=$2 | ||
command="${@:3}" | ||
exitcode=0 | ||
try=0 | ||
until [ "$try" -ge $retries ] | ||
do | ||
echo "$command" | ||
eval "$command" | ||
exitcode=$? | ||
if [ $exitcode -eq 0 ]; then | ||
break | ||
fi | ||
try=$((try+1)) | ||
sleep $2 | ||
done | ||
exit $exitcode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,7 @@ on: # yamllint disable-line rule:truthy | |
- requested | ||
jobs: | ||
cancel: | ||
runs-on: [self-hosted, style-checker] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: styfle/[email protected] | ||
with: | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.