mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-07-27 15:11:28 -07:00
[CI] Remove ansible-test custom containers (#650)
* Cut tests containers * Cut unused flatten versions * Fix installation of mysqlclient on Ubuntu * Cut unused variables * Fix package missing on Unbuntu 22.04 * Fix variable templating * Fix test for ansible 2.17 and do remove the ignore_errors ignore_errors is bad because it makes searching for real errors difficult.
This commit is contained in:
parent
aafe658a85
commit
1922e7154e
38 changed files with 55 additions and 743 deletions
32
.github/workflows/ansible-test-plugins.yml
vendored
32
.github/workflows/ansible-test-plugins.yml
vendored
|
@ -252,37 +252,6 @@ jobs:
|
|||
${{ job.services.db_primary.id }}
|
||||
| grep healthy && [[ "$SECONDS" -lt 120 ]]; do sleep 1; done
|
||||
|
||||
- name: Compute docker_image - Set python_version_flat
|
||||
run: >
|
||||
echo "python_version_flat=$(echo ${{ matrix.python }}
|
||||
| tr -d '.')" >> $GITHUB_ENV
|
||||
|
||||
- name: Compute docker_image - Set connector_version_flat
|
||||
run: >
|
||||
echo "connector_version_flat=$(echo ${{ matrix.connector_version }}
|
||||
|tr -d .)" >> $GITHUB_ENV
|
||||
|
||||
- name: Compute docker_image - Set db_engine_version_flat
|
||||
run: >
|
||||
echo "db_engine_version_flat=$(echo ${{ matrix.db_engine_version }}
|
||||
| awk -F '.' '{print $1 $2}')" >> $GITHUB_ENV
|
||||
|
||||
- name: Compute docker_image - Set db_client
|
||||
run: >
|
||||
if [[ ${{ env.db_engine_version_flat }} == 57 ]]; then
|
||||
echo "db_client=my57" >> $GITHUB_ENV;
|
||||
else
|
||||
echo "db_client=$(echo ${{ matrix.db_engine_name }})" >> $GITHUB_ENV;
|
||||
fi
|
||||
|
||||
- name: Set docker_image
|
||||
run: |-
|
||||
echo "docker_image=ghcr.io/ansible-collections/community.mysql\
|
||||
/test-container-${{ env.db_client }}\
|
||||
-py${{ env.python_version_flat }}\
|
||||
-${{ matrix.connector_name }}${{ env.connector_version_flat }}\
|
||||
:latest" >> $GITHUB_ENV
|
||||
|
||||
- name: >-
|
||||
Perform integration testing against
|
||||
Ansible version ${{ matrix.ansible }}
|
||||
|
@ -315,7 +284,6 @@ jobs:
|
|||
echo Setting Ansible version to "${{ matrix.ansible }}"...;
|
||||
echo -n "${{ matrix.ansible }}"
|
||||
> tests/integration/ansible
|
||||
docker-image: ${{ env.docker_image }}
|
||||
target-python-version: ${{ matrix.python }}
|
||||
testing-type: integration
|
||||
|
||||
|
|
67
.github/workflows/build-docker-image.yml
vendored
67
.github/workflows/build-docker-image.yml
vendored
|
@ -1,67 +0,0 @@
|
|||
---
|
||||
name: Build Docker Image for ansible-test
|
||||
|
||||
on: # yamllint disable-line rule:truthy
|
||||
workflow_call:
|
||||
inputs:
|
||||
registry:
|
||||
required: true
|
||||
type: string
|
||||
image_name:
|
||||
required: true
|
||||
type: string
|
||||
context:
|
||||
required: true
|
||||
type: string
|
||||
|
||||
jobs:
|
||||
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: read
|
||||
packages: write
|
||||
|
||||
steps:
|
||||
# Requirement to use 'context' in docker/build-push-action@v3
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v3
|
||||
|
||||
# https://github.com/docker/login-action
|
||||
- name: Log into registry ${{ inputs.registry }}
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
registry: ${{ inputs.registry }}
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
# https://github.com/docker/metadata-action
|
||||
- name: Extract Docker metadata (tags, labels)
|
||||
id: meta
|
||||
uses: docker/metadata-action@v4
|
||||
with:
|
||||
images:
|
||||
"${{ inputs.registry }}\
|
||||
/${{ github.repository }}\
|
||||
/${{ inputs.image_name }}"
|
||||
tags: latest
|
||||
|
||||
# Setting up Docker Buildx with docker-container driver is required
|
||||
# at the moment to be able to use a subdirectory with Git context
|
||||
#
|
||||
# https://github.com/docker/setup-buildx-action
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v2
|
||||
|
||||
# https://github.com/docker/build-push-action
|
||||
- name: Build and push Docker image with Buildx
|
||||
id: build-and-push
|
||||
uses: docker/build-push-action@v3
|
||||
with:
|
||||
context: ${{ inputs.context }}
|
||||
push: true
|
||||
tags: ${{ steps.meta.outputs.tags }}
|
||||
labels: ${{ steps.meta.outputs.labels }}
|
||||
cache-from: type=gha
|
||||
cache-to: type=gha,mode=max
|
|
@ -1,21 +0,0 @@
|
|||
---
|
||||
name: Docker Image CI mariadb-py310-mysqlclient211
|
||||
|
||||
on: # yamllint disable-line rule:truthy
|
||||
push:
|
||||
paths:
|
||||
- 'test-containers/mariadb-py310-mysqlclient211/**'
|
||||
- '.github/workflows/docker-image-mariadb-py310-mysqlclient211.yml'
|
||||
- '.github/workflows/build-docker-image.yml'
|
||||
branches-ignore:
|
||||
- stable-*
|
||||
|
||||
jobs:
|
||||
|
||||
call-workflow-passing-data:
|
||||
uses: ./.github/workflows/build-docker-image.yml
|
||||
secrets: inherit
|
||||
with:
|
||||
registry: ghcr.io
|
||||
image_name: test-container-mariadb-py310-mysqlclient211
|
||||
context: test-containers/mariadb-py310-mysqlclient211
|
|
@ -1,21 +0,0 @@
|
|||
---
|
||||
name: Docker Image CI mariadb-py310-pymysql102
|
||||
|
||||
on: # yamllint disable-line rule:truthy
|
||||
push:
|
||||
paths:
|
||||
- 'test-containers/mariadb-py310-pymysql102/**'
|
||||
- '.github/workflows/docker-image-mariadb-py310-pymysql102.yml'
|
||||
- '.github/workflows/build-docker-image.yml'
|
||||
branches-ignore:
|
||||
- stable-*
|
||||
|
||||
jobs:
|
||||
|
||||
call-workflow-passing-data:
|
||||
uses: ./.github/workflows/build-docker-image.yml
|
||||
secrets: inherit
|
||||
with:
|
||||
registry: ghcr.io
|
||||
image_name: test-container-mariadb-py310-pymysql102
|
||||
context: test-containers/mariadb-py310-pymysql102
|
|
@ -1,21 +0,0 @@
|
|||
---
|
||||
name: Docker Image CI mariadb-py38-mysqlclient201
|
||||
|
||||
on: # yamllint disable-line rule:truthy
|
||||
push:
|
||||
paths:
|
||||
- 'test-containers/mariadb-py38-mysqlclient201/**'
|
||||
- '.github/workflows/docker-image-mariadb-py38-mysqlclient201.yml'
|
||||
- '.github/workflows/build-docker-image.yml'
|
||||
branches-ignore:
|
||||
- stable-*
|
||||
|
||||
jobs:
|
||||
|
||||
call-workflow-passing-data:
|
||||
uses: ./.github/workflows/build-docker-image.yml
|
||||
secrets: inherit
|
||||
with:
|
||||
registry: ghcr.io
|
||||
image_name: test-container-mariadb-py38-mysqlclient201
|
||||
context: test-containers/mariadb-py38-mysqlclient201
|
|
@ -1,21 +0,0 @@
|
|||
---
|
||||
name: Docker Image CI mariadb-py38-pymysql093
|
||||
|
||||
on: # yamllint disable-line rule:truthy
|
||||
push:
|
||||
paths:
|
||||
- 'test-containers/mariadb-py38-pymysql093/**'
|
||||
- '.github/workflows/docker-image-mariadb-py38-pymysql093.yml'
|
||||
- '.github/workflows/build-docker-image.yml'
|
||||
branches-ignore:
|
||||
- stable-*
|
||||
|
||||
jobs:
|
||||
|
||||
call-workflow-passing-data:
|
||||
uses: ./.github/workflows/build-docker-image.yml
|
||||
secrets: inherit
|
||||
with:
|
||||
registry: ghcr.io
|
||||
image_name: test-container-mariadb-py38-pymysql093
|
||||
context: test-containers/mariadb-py38-pymysql093
|
|
@ -1,21 +0,0 @@
|
|||
---
|
||||
name: Docker Image CI mariadb-py39-mysqlclient203
|
||||
|
||||
on: # yamllint disable-line rule:truthy
|
||||
push:
|
||||
paths:
|
||||
- 'test-containers/mariadb-py39-mysqlclient203/**'
|
||||
- '.github/workflows/docker-image-mariadb-py39-mysqlclient203.yml'
|
||||
- '.github/workflows/build-docker-image.yml'
|
||||
branches-ignore:
|
||||
- stable-*
|
||||
|
||||
jobs:
|
||||
|
||||
call-workflow-passing-data:
|
||||
uses: ./.github/workflows/build-docker-image.yml
|
||||
secrets: inherit
|
||||
with:
|
||||
registry: ghcr.io
|
||||
image_name: test-container-mariadb-py39-mysqlclient203
|
||||
context: test-containers/mariadb-py39-mysqlclient203
|
|
@ -1,21 +0,0 @@
|
|||
---
|
||||
name: Docker Image CI mariadb-py39-pymysql093
|
||||
|
||||
on: # yamllint disable-line rule:truthy
|
||||
push:
|
||||
paths:
|
||||
- 'test-containers/mariadb-py39-pymysql093/**'
|
||||
- '.github/workflows/docker-image-mariadb-py39-pymysql093.yml'
|
||||
- '.github/workflows/build-docker-image.yml'
|
||||
branches-ignore:
|
||||
- stable-*
|
||||
|
||||
jobs:
|
||||
|
||||
call-workflow-passing-data:
|
||||
uses: ./.github/workflows/build-docker-image.yml
|
||||
secrets: inherit
|
||||
with:
|
||||
registry: ghcr.io
|
||||
image_name: test-container-mariadb-py39-pymysql093
|
||||
context: test-containers/mariadb-py39-pymysql093
|
|
@ -1,21 +0,0 @@
|
|||
---
|
||||
name: Docker Image CI my57-py38-mysqlclient201
|
||||
|
||||
on: # yamllint disable-line rule:truthy
|
||||
push:
|
||||
paths:
|
||||
- 'test-containers/my57-py38-mysqlclient201/**'
|
||||
- '.github/workflows/docker-image-my57-py38-mysqlclient201.yml'
|
||||
- '.github/workflows/build-docker-image.yml'
|
||||
branches-ignore:
|
||||
- stable-*
|
||||
|
||||
jobs:
|
||||
|
||||
call-workflow-passing-data:
|
||||
uses: ./.github/workflows/build-docker-image.yml
|
||||
secrets: inherit
|
||||
with:
|
||||
registry: ghcr.io
|
||||
image_name: test-container-my57-py38-mysqlclient201
|
||||
context: test-containers/my57-py38-mysqlclient201
|
|
@ -1,21 +0,0 @@
|
|||
---
|
||||
name: Docker Image CI my57-py38-pymysql0711
|
||||
|
||||
on: # yamllint disable-line rule:truthy
|
||||
push:
|
||||
paths:
|
||||
- 'test-containers/my57-py38-pymysql0711/**'
|
||||
- '.github/workflows/docker-image-my57-py38-pymysql0711.yml'
|
||||
- '.github/workflows/build-docker-image.yml'
|
||||
branches-ignore:
|
||||
- stable-*
|
||||
|
||||
jobs:
|
||||
|
||||
call-workflow-passing-data:
|
||||
uses: ./.github/workflows/build-docker-image.yml
|
||||
secrets: inherit
|
||||
with:
|
||||
registry: ghcr.io
|
||||
image_name: test-container-my57-py38-pymysql0711
|
||||
context: test-containers/my57-py38-pymysql0711
|
|
@ -1,21 +0,0 @@
|
|||
---
|
||||
name: Docker Image CI my57-py38-pymysql093
|
||||
|
||||
on: # yamllint disable-line rule:truthy
|
||||
push:
|
||||
paths:
|
||||
- 'test-containers/my57-py38-pymysql093/**'
|
||||
- '.github/workflows/docker-image-my57-py38-pymysql093.yml'
|
||||
- '.github/workflows/build-docker-image.yml'
|
||||
branches-ignore:
|
||||
- stable-*
|
||||
|
||||
jobs:
|
||||
|
||||
call-workflow-passing-data:
|
||||
uses: ./.github/workflows/build-docker-image.yml
|
||||
secrets: inherit
|
||||
with:
|
||||
registry: ghcr.io
|
||||
image_name: test-container-my57-py38-pymysql093
|
||||
context: test-containers/my57-py38-pymysql093
|
|
@ -1,21 +0,0 @@
|
|||
---
|
||||
name: Docker Image CI mysql-py310-mysqlclient211
|
||||
|
||||
on: # yamllint disable-line rule:truthy
|
||||
push:
|
||||
paths:
|
||||
- 'test-containers/mysql-py310-mysqlclient211/**'
|
||||
- '.github/workflows/docker-image-mysql-py310-mysqlclient211.yml'
|
||||
- '.github/workflows/build-docker-image.yml'
|
||||
branches-ignore:
|
||||
- stable-*
|
||||
|
||||
jobs:
|
||||
|
||||
call-workflow-passing-data:
|
||||
uses: ./.github/workflows/build-docker-image.yml
|
||||
secrets: inherit
|
||||
with:
|
||||
registry: ghcr.io
|
||||
image_name: test-container-mysql-py310-mysqlclient211
|
||||
context: test-containers/mysql-py310-mysqlclient211
|
|
@ -1,21 +0,0 @@
|
|||
---
|
||||
name: Docker Image CI mysql-py310-pymysql102
|
||||
|
||||
on: # yamllint disable-line rule:truthy
|
||||
push:
|
||||
paths:
|
||||
- 'test-containers/mysql-py310-pymysql102/**'
|
||||
- '.github/workflows/docker-image-mysql-py310-pymysql102.yml'
|
||||
- '.github/workflows/build-docker-image.yml'
|
||||
branches-ignore:
|
||||
- stable-*
|
||||
|
||||
jobs:
|
||||
|
||||
call-workflow-passing-data:
|
||||
uses: ./.github/workflows/build-docker-image.yml
|
||||
secrets: inherit
|
||||
with:
|
||||
registry: ghcr.io
|
||||
image_name: test-container-mysql-py310-pymysql102
|
||||
context: test-containers/mysql-py310-pymysql102
|
|
@ -1,21 +0,0 @@
|
|||
---
|
||||
name: Docker Image CI mysql-py38-mysqlclient201
|
||||
|
||||
on: # yamllint disable-line rule:truthy
|
||||
push:
|
||||
paths:
|
||||
- 'test-containers/mysql-py38-mysqlclient201/**'
|
||||
- '.github/workflows/docker-image-mysql-py38-mysqlclient201.yml'
|
||||
- '.github/workflows/build-docker-image.yml'
|
||||
branches-ignore:
|
||||
- stable-*
|
||||
|
||||
jobs:
|
||||
|
||||
call-workflow-passing-data:
|
||||
uses: ./.github/workflows/build-docker-image.yml
|
||||
secrets: inherit
|
||||
with:
|
||||
registry: ghcr.io
|
||||
image_name: test-container-mysql-py38-mysqlclient201
|
||||
context: test-containers/mysql-py38-mysqlclient201
|
|
@ -1,21 +0,0 @@
|
|||
---
|
||||
name: Docker Image CI mysql-py38-pymysql093
|
||||
|
||||
on: # yamllint disable-line rule:truthy
|
||||
push:
|
||||
paths:
|
||||
- 'test-containers/mysql-py38-pymysql093/**'
|
||||
- '.github/workflows/docker-image-mysql-py38-pymysql093.yml'
|
||||
- '.github/workflows/build-docker-image.yml'
|
||||
branches-ignore:
|
||||
- stable-*
|
||||
|
||||
jobs:
|
||||
|
||||
call-workflow-passing-data:
|
||||
uses: ./.github/workflows/build-docker-image.yml
|
||||
secrets: inherit
|
||||
with:
|
||||
registry: ghcr.io
|
||||
image_name: test-container-mysql-py38-pymysql093
|
||||
context: test-containers/mysql-py38-pymysql093
|
|
@ -1,21 +0,0 @@
|
|||
---
|
||||
name: Docker Image CI mysql-py39-mysqlclient203
|
||||
|
||||
on: # yamllint disable-line rule:truthy
|
||||
push:
|
||||
paths:
|
||||
- 'test-containers/mysql-py39-mysqlclient203/**'
|
||||
- '.github/workflows/docker-image-mysql-py39-mysqlclient203.yml'
|
||||
- '.github/workflows/build-docker-image.yml'
|
||||
branches-ignore:
|
||||
- stable-*
|
||||
|
||||
jobs:
|
||||
|
||||
call-workflow-passing-data:
|
||||
uses: ./.github/workflows/build-docker-image.yml
|
||||
secrets: inherit
|
||||
with:
|
||||
registry: ghcr.io
|
||||
image_name: test-container-mysql-py39-mysqlclient203
|
||||
context: test-containers/mysql-py39-mysqlclient203
|
|
@ -1,21 +0,0 @@
|
|||
---
|
||||
name: Docker Image CI mysql-py39-pymysql093
|
||||
|
||||
on: # yamllint disable-line rule:truthy
|
||||
push:
|
||||
paths:
|
||||
- 'test-containers/mysql-py39-pymysql093/*'
|
||||
- '.github/workflows/docker-image-mysql-py39-pymysql093.yml'
|
||||
- '.github/workflows/build-docker-image.yml'
|
||||
branches-ignore:
|
||||
- stable-*
|
||||
|
||||
jobs:
|
||||
|
||||
call-workflow-passing-data:
|
||||
uses: ./.github/workflows/build-docker-image.yml
|
||||
secrets: inherit
|
||||
with:
|
||||
registry: ghcr.io
|
||||
image_name: test-container-mysql-py39-pymysql093
|
||||
context: test-containers/mysql-py39-pymysql093
|
Loading…
Add table
Add a link
Reference in a new issue