Skip to content

Update docker.io/python Docker tag to v3.12 #2511

Update docker.io/python Docker tag to v3.12

Update docker.io/python Docker tag to v3.12 #2511

Workflow file for this run

name: Docker Image CI
on:
push:
branches:
- develop
tags:
- v*.*.*
pull_request:
branches:
- "*"
permissions: {}
jobs:
build:
permissions:
contents: read # to fetch code (actions/checkout)
packages: write # to push to ghcr.io
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4
- name: Setup QEMU
uses: docker/setup-qemu-action@v3
- name: Setup Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v3
with:
install: true
- name: Log in to Docker Hub
if: github.event_name != 'pull_request'
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
if: github.event_name == 'push'
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ github.token }}
- name: Docker metadata
id: meta
uses: docker/metadata-action@v5
with:
images: |
flexget/flexget
ghcr.io/flexget/flexget
tags: |
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
type=ref,event=branch
- name: Build Base Docker Image
id: docker_build
uses: docker/build-push-action@v5
with:
context: ./
file: ./Dockerfile
builder: ${{ steps.buildx.output.name }}
push: ${{ github.event_name == 'push' && github.ref != 'refs/heads/master' }}
platforms: linux/amd64,linux/arm64
provenance: false
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: |
type=gha, scope=${{ github.ref_name }}
type=gha, scope=${{ github.base_ref }}
cache-to: type=gha, mode=max, scope=${{ github.ref_name }}