feat(dockerfile): Fix python image version #31
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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 }}" | |
... |