Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/publish-2.7.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,10 @@ jobs:
2.7-slim
2.7.18-slim
with:
image: coatldev/python
version: ${{ matrix.image.version }}
variant: ${{ matrix.image.variant }}
tags: ${{ matrix.image.tags }}
username: ${{ vars.DOCKERHUB_USERNAME }}
secrets:
password: ${{ secrets.DOCKERHUB_TOKEN }}
14 changes: 8 additions & 6 deletions .github/workflows/publish-3.12.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,18 +48,20 @@ jobs:
- version: '3.12'
variant: bookworm
tags: |
type=raw,value=${{ needs.tagger.outputs.major }}
type=raw,value=${{ needs.tagger.outputs.major_minor }}
type=raw,value=${{ needs.tagger.outputs.version }}
${{ needs.tagger.outputs.major }}
${{ needs.tagger.outputs.major_minor }}
${{ needs.tagger.outputs.version }}
- version: '3.12'
variant: slim-bookworm
tags: |
type=raw,value=${{ needs.tagger.outputs.major }}-slim
type=raw,value=${{ needs.tagger.outputs.major_minor }}-slim
type=raw,value=${{ needs.tagger.outputs.version }}-slim
${{ needs.tagger.outputs.major }}-slim
${{ needs.tagger.outputs.major_minor }}-slim
${{ needs.tagger.outputs.version }}-slim
with:
image: coatldev/python
version: ${{ matrix.image.version }}
variant: ${{ matrix.image.variant }}
tags: ${{ matrix.image.tags }}
username: ${{ vars.DOCKERHUB_USERNAME }}
secrets:
password: ${{ secrets.DOCKERHUB_TOKEN }}
16 changes: 14 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
on:
workflow_call:
inputs:
image:
description: >-
Docker image to use as base name for tags.
required: true
type: string
version:
description: >-
Python version to release.
Expand All @@ -16,18 +21,25 @@ on:
List of tags as key-value pair attributes.
required: false
type: string
username:
description: >-
Username for authenticating to the Docker registry.
required: true
type: string
secrets:
password:
description: >-
Password or personal access token for authenticating the Docker registry.
required: true

jobs:
publish:
uses: coatl-dev/workflows/.github/workflows/docker-build-push-multi-platform.yml@v4
with:
registry-image: coatldev/python
registry-image: ${{ inputs.image }}
metadata-tags: |
${{ inputs.tags }}
registry-username: ${{ vars.DOCKERHUB_USERNAME }}
registry-username: ${{ inputs.username }}
build-file: ${{ inputs.version }}/${{ inputs.variant }}/Dockerfile
build-cache-key: ${{ inputs.version }}-${{ inputs.variant }}
build-digest-key: ${{ inputs.version }}-${{ inputs.variant }}
Expand Down