Skip to content
This repository has been archived by the owner on Mar 6, 2024. It is now read-only.

Merge pull request #28 from haysberg/renovate/sqlalchemy-2.x #104

Merge pull request #28 from haysberg/renovate/sqlalchemy-2.x

Merge pull request #28 from haysberg/renovate/sqlalchemy-2.x #104

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
name: Docker build & push
on:
push:
branches: ['*']
env:
IMAGE_NAME: ${{ github.repository }}
REGISTRY: ghcr.io
jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
build-image:
runs-on: ubuntu-latest
needs: pre-commit
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
type=ref,event=branch
type=sha
- name: Build Docker image
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}