Skip to content

Bump fastapi from 0.110.2 to 0.110.3 (#308) #368

Bump fastapi from 0.110.2 to 0.110.3 (#308)

Bump fastapi from 0.110.2 to 0.110.3 (#308) #368

Workflow file for this run

name: container-build
on:
workflow_dispatch:
push:
branches:
- 'main'
jobs:
docker-buildx:
runs-on: ubuntu-latest
env:
image_name: pschmitt/jcalapi
platforms: linux/amd64,linux/arm64
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
with:
images: |
docker.io/${{ env.image_name }}
ghcr.io/${{ env.image_name }}
tags: |
# set latest tag for default branch
type=raw,value=latest,enable={{is_default_branch}}
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
platforms: ${{ env.platforms }}
cache-from: type=gha
cache-to: type=gha,mode=max