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
12 changes: 7 additions & 5 deletions .github/actions/docker_setup/action.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,25 @@
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
test_name:
description: name of the test, used in determining ipv6 configs.
default: None
type: string
runs:
using: "composite"
steps:
- name: Docker IPv6 configuration
shell: bash
env:
ipv6_subnet: ${{ contains(inputs.test_name, 'Integration') && '2001:db8:1::/64' || '2001:3984:3989::/64' }}
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"
"fixed-cidr-v6": "${{ env.ipv6_subnet }}"
}
EOT
sudo chown root:root /etc/docker/daemon.json
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/reusable_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,8 @@ jobs:
job_type: test
- name: Docker setup
uses: ./.github/actions/docker_setup
with:
test_name: ${{ inputs.test_name }}
- name: Setup batch
if: ${{ fromJson(inputs.data).jobs_data.jobs_params[inputs.test_name].num_batches > 1 }}
run: |
Expand Down
Loading