diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7377b4af88..7ff1eefbb6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -171,3 +171,41 @@ jobs: run: | docker run -u $(id -u) --rm -v ${{ github.workspace}}:/awx_devel/:Z \ --workdir=/awx_devel ghcr.io/${{ github.repository_owner }}/awx_devel:${{ github.base_ref }} make ui-test + + e2e-test: + runs-on: ubuntu-latest + permissions: + packages: write + contents: read + steps: + - uses: actions/checkout@v2 + + - name: Checkout tower-qa + uses: actions/checkout@v2 + with: + path: tower-qa + + - name: Log in to gcr.io + run: | + echo "${{ secrets.GCR_PULL_SECRET }}" | docker login gcr.io -u _json_key --password-stdin + + - name: Pull awx_cypress_base image + run: | + docker pull gcr.io/ansible-tower-engineering/awx_cypress_base:stable + + - name: Build cypress + run: | + cd tower-qa/ui-tests/awx-pf-tests + docker build -t awx-pf-tests . + + - name: Log in to registry + run: | + echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin + + - name: Pre-pull image to warm build cache + run: | + docker pull ghcr.io/${{ github.repository_owner }}/awx_devel:${{ github.base_ref }} + + - name: Build image + run: | + DEV_DOCKER_TAG_BASE=ghcr.io/${{ github.repository_owner }} COMPOSE_TAG=${{ github.base_ref }} make docker-compose-build \ No newline at end of file