Skip to content

feat(dockerfile): Fix python image version #32

feat(dockerfile): Fix python image version

feat(dockerfile): Fix python image version #32

Workflow file for this run

---
name: "Build and Push docker image"
on:
push:
branches:
- "main"
tags:
- "v*.*.*"
jobs:
build-docker-image-job:
name: "Build and push docker image"
runs-on: "ubuntu-latest"
steps:
- name: "Checkout"
uses: "actions/[email protected]"
- name: "Extract metadata for image tags and labels"
id: "meta"
uses: "docker/[email protected]"
with:
images: |
${{ secrets.DOCKER_REPOSITORY }}
tags: |
type=semver,pattern=v{{version}}
type=semver,pattern=v{{major}}.{{minor}}
type=semver,pattern=v{{major}}
type=raw,value=latest
- name: "Set up QEMU"
uses: "docker/[email protected]"
- name: "Set up Docker Buildx"
uses: "docker/[email protected]"
- name: "Login to Docker Hub"
uses: "docker/[email protected]"
with:
username: "${{ secrets.DOCKER_USERNAME }}"
password: "${{ secrets.DOCKER_PASSWORD }}"
- name: "Build and push image"
uses: "docker/[email protected]"
with:
file: "./docker/Dockerfile"
push: true
tags: "${{ steps.meta.outputs.tags }}"
labels: "${{ steps.meta.outputs.labels }}"
...