From 2fa856cad82d74b7c3c0062ef6898fe44b6a7c9c Mon Sep 17 00:00:00 2001 From: Sam Doran Date: Fri, 17 Dec 2021 14:50:51 -0500 Subject: [PATCH] Build container image for integration tests --- .github/workflows/ci.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 91718b8c0..4dcd0a4f1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -37,9 +37,45 @@ jobs: run: tox + images: + name: Build Image - ${{ matrix.runtime }} + runs-on: ubuntu-20.04 + + strategy: + fail-fast: false + matrix: + runtime: + - docker + - podman + + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Build Container Image + run: ${{ matrix.runtime }} build --rm=true -t images: + name: Build Image - ${{ matrix.runtime }} + runs-on: ubuntu-20.04 + + strategy: + fail-fast: false + matrix: + runtime: + - docker + - podman + + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Build Container Image + run: ${{ matrix.runtime }} build --rm=true -t quay.io/ansible/ansible-runner:devel -t quay.io/ansible/ansible-runner:latest . + + integration: runs-on: ubuntu-20.04 name: Integration - ${{ matrix.py_version.name }} + needs: images env: TOXENV: ${{ matrix.py_version.tox_env }}