Skip to content

Add Python 3.11 and 3.12 #28

Add Python 3.11 and 3.12

Add Python 3.11 and 3.12 #28

Workflow file for this run

---
name: build and push
on:
push:
branches:
- 'main'
schedule:
- cron: '0 11 * * 2'
pull_request:
branches:
- 'main'
workflow_dispatch:
jobs:
docker:
name: build and push ${{ matrix.pyver }}
runs-on: ubuntu-latest
strategy:
matrix:
pyver:
- py38
- py39
- py310
- py311
- py312
steps:
-
name: Checkout
uses: actions/checkout@v4
-
name: Gather metadata
id: meta
uses: docker/metadata-action@v5
with:
images: |
shivupa/cclib-ci
flavor: |
latest=true
tags: |
type=schedule,pattern={{date 'YYYYMMDD'}},prefix=${{ matrix.pyver }}-
type=sha,prefix=${{ matrix.pyver }}-
type=edge,prefix=${{ matrix.pyver }}-
-
name: Set up QEMU
uses: docker/setup-qemu-action@v3
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
-
name: Build and export to Docker
uses: docker/build-push-action@v5
with:
context: ${{ matrix.pyver }}
push: false
load: true
tags: ${{ steps.meta.outputs.tags }}
-
name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and push
uses: docker/build-push-action@v5
with:
context: ${{ matrix.pyver }}
push: ${{ github.event_name != 'pull_request'}}
tags: ${{ steps.meta.outputs.tags }}