update to autodoc_pydantic 2.2 #277
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: 🐋 Docker Build | |
on: | |
push: | |
branches: | |
- dev | |
- main | |
tags: | |
- v* | |
jobs: | |
build: | |
name: ⚙️🐋 Build and Publish Images | |
runs-on: ubuntu-latest | |
steps: | |
- name: Cache Docker Layers 📦 | |
uses: actions/[email protected] | |
with: | |
path: /tmp/.buildx-cache | |
key: ${{ runner.os }}-buildx-${{ github.sha }} | |
restore-keys: | | |
${{ runner.os }}-buildx- | |
- name: Checkout 🚚 | |
uses: actions/[email protected] | |
- name: Docker Meta 📋 | |
id: meta | |
uses: docker/[email protected] | |
with: | |
images: | | |
ghcr.io/${{ github.repository }} | |
${{ secrets.DOCKER_HUB_USERNAME }}/${{ secrets.DOCKER_HUB_REPO }} | |
tags: | | |
type=ref,event=branch | |
type=semver,pattern={{version}} | |
type=pep440,pattern={{version}} | |
type=pep440,pattern={{major}}.{{minor}}.{{patch}} | |
type=pep440,pattern={{major}}.{{minor}} | |
type=pep440,pattern={{major}} | |
- name: Login to Docker Hub 🐳 | |
uses: docker/[email protected] | |
with: | |
username: ${{ secrets.DOCKER_HUB_USERNAME }} | |
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} | |
- name: Login to GHCR 🐙 | |
uses: docker/[email protected] | |
with: | |
registry: ghcr.io | |
username: ${{ github.repository_owner }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Set up Docker Buildx 🐋 | |
id: buildx | |
uses: docker/[email protected] | |
- name: Build and Push 🚀 | |
id: docker_build | |
uses: docker/[email protected] | |
with: | |
context: ./ | |
file: ./Dockerfile | |
builder: ${{ steps.buildx.outputs.name }} | |
push: true | |
tags: ${{ steps.meta.outputs.tags }} | |
labels: ${{ steps.meta.outputs.labels }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache |