Configure docker. #224
This file contains hidden or 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
| --- | |
| name: Molecule Test | |
| on: | |
| push: | |
| pull_request: | |
| schedule: | |
| - cron: '30 5 * * 0' | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| max-parallel: 4 | |
| matrix: | |
| python-version: [3.9, "3.10", 3.11] | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install dependencies | |
| run: | | |
| python3 -m pip install --upgrade pip | |
| python3 -m pip install -r requirements-dev.txt | |
| - name: Set up Docker | |
| uses: docker/setup-buildx-action@v2 | |
| - name: Configure Docker | |
| run: | | |
| sudo mkdir -p /etc/docker | |
| echo '{"experimental": true}' | sudo tee /etc/docker/daemon.json | |
| sudo systemctl restart docker | |
| sudo chmod 666 /var/run/docker.sock | |
| - name: Set Docker environment variables | |
| run: | | |
| echo "DOCKER_HOST=unix:///var/run/docker.sock" >> $GITHUB_ENV | |
| echo "DOCKER_TLS_VERIFY=0" >> $GITHUB_ENV | |
| echo "DOCKER_TLS_CERTDIR=" >> $GITHUB_ENV | |
| - name: Test with molecule | |
| run: | | |
| molecule test |