Skip to content

Bump gunicorn from 21.2.0 to 23.0.0 (#9) #1

Bump gunicorn from 21.2.0 to 23.0.0 (#9)

Bump gunicorn from 21.2.0 to 23.0.0 (#9) #1

name: Publish Docker image to GHCR
on:
push:
branches:
- main # Or master, or your default branch
jobs:
build_and_publish:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write # Required to publish packages to GHCR
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Log in to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v4
with:
images: ghcr.io/${{ github.repository }} # ghcr.io/OWNER/REPO
- name: Build and push Docker image
uses: docker/build-push-action@v4
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}