summaryrefslogtreecommitdiff
path: root/.github/actions
diff options
context:
space:
mode:
authorCrazyMax <crazy-max@users.noreply.github.com>2022-08-27 15:05:22 +0200
committerCrazyMax <crazy-max@users.noreply.github.com>2022-09-07 22:52:34 +0200
commit2e04be3fb92085d49854cc680a2b686ff726dd15 (patch)
treea8e26182d4fe74d464ee494b8a288949909205f7 /.github/actions
parenta0a16bbed6ee302eab1a039bc130c3cd69e8e781 (diff)
downloaddocker-2e04be3fb92085d49854cc680a2b686ff726dd15.tar.gz
ci: gha test workflow for integration and unit test
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
Diffstat (limited to '.github/actions')
-rw-r--r--.github/actions/setup-runner/action.yml27
1 files changed, 27 insertions, 0 deletions
diff --git a/.github/actions/setup-runner/action.yml b/.github/actions/setup-runner/action.yml
new file mode 100644
index 0000000000..d9e5211c23
--- /dev/null
+++ b/.github/actions/setup-runner/action.yml
@@ -0,0 +1,27 @@
+name: 'Setup Runner'
+description: 'Composite action to set up the GitHub Runner for jobs in the test.yml workflow'
+
+runs:
+ using: composite
+ steps:
+ - run: |
+ sudo modprobe ip_vs
+ sudo modprobe ipv6
+ sudo modprobe ip6table_filter
+ sudo modprobe -r overlay
+ sudo modprobe overlay redirect_dir=off
+ shell: bash
+ - run: |
+ if [ ! -e /etc/docker/daemon.json ]; then
+ echo '{}' | tee /etc/docker/daemon.json >/dev/null
+ fi
+ DOCKERD_CONFIG=$(jq '.+{"experimental":true,"live-restore":true,"ipv6":true,"fixed-cidr-v6":"2001:db8:1::/64"}' /etc/docker/daemon.json)
+ sudo tee /etc/docker/daemon.json <<<"$DOCKERD_CONFIG" >/dev/null
+ sudo service docker restart
+ shell: bash
+ - run: |
+ ./contrib/check-config.sh || true
+ shell: bash
+ - run: |
+ docker info
+ shell: bash