f5bd6e3b2f
Administratively merging because @vltr and @ahopkins are the release managers, and @ahopkins is originator of the PR * Add Python 3.10 testing (and support) * fixed py310 tox environment for windows, quoted '3.10' in python-310 tests to avoid numeric compression * updated tox.ini for py310 * quoted the rest of the bare 3.10 references in the workflows * Issue with pytest requires version bump to 6.2.5 for python 3.10 Co-authored-by: Stephen Sadowski <stephen.sadowski@sjsadowski.com>
49 lines
1.6 KiB
YAML
49 lines
1.6 KiB
YAML
name: Publish Docker Images
|
|
on:
|
|
workflow_run:
|
|
workflows:
|
|
- 'Publish Artifacts'
|
|
types:
|
|
- completed
|
|
|
|
jobs:
|
|
publishDockerImages:
|
|
name: Docker Image Build [${{ matrix.python-version }}]
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
fail-fast: true
|
|
matrix:
|
|
python-version: ["3.7", "3.8", "3.9", "3.10"]
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Build Latest Base images for ${{ matrix.python-version }}
|
|
uses: harshanarayana/custom-actions@main
|
|
with:
|
|
docker-image-base-name: sanicframework/sanic-build
|
|
ignore-python-setup: 'true'
|
|
dockerfile-base-dir: './docker'
|
|
action: 'image-publish'
|
|
docker-image-tag: "${{ matrix.python-version }}"
|
|
docker-file-suffix: "base"
|
|
docker-build-args: "PYTHON_VERSION=${{ matrix.python-version }}"
|
|
registry-auth-user: ${{ secrets.DOCKER_ACCESS_USER }}
|
|
registry-auth-password: ${{ secrets.DOCKER_ACCESS_TOKEN }}
|
|
push-images: 'true'
|
|
|
|
- name: Publish Sanic Docker Image for ${{ matrix.python-version }}
|
|
uses: harshanarayana/custom-actions@main
|
|
with:
|
|
docker-image-base-name: sanicframework/sanic
|
|
ignore-python-setup: 'true'
|
|
dockerfile-base-dir: './docker'
|
|
action: 'image-publish'
|
|
docker-build-args: "BASE_IMAGE_TAG=${{ matrix.python-version }}"
|
|
docker-image-prefix: "${{ matrix.python-version }}"
|
|
registry-auth-user: ${{ secrets.DOCKER_ACCESS_USER }}
|
|
registry-auth-password: ${{ secrets.DOCKER_ACCESS_TOKEN }}
|
|
push-images: 'true'
|