2021-04-06 21:32:01 +01:00
|
|
|
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:
|
2023-07-09 20:00:14 +01:00
|
|
|
python-version: ["3.8", "3.9", "3.10", "3.11"]
|
2021-04-06 21:32:01 +01:00
|
|
|
|
|
|
|
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'
|