Skip to content

Update actions/checkout action to v7 #11

Update actions/checkout action to v7

Update actions/checkout action to v7 #11

Workflow file for this run

name: docker
on:
push:
branches: [master, dev]
tags: ["*.*.*", "V*", "v*"]
pull_request:
paths:
- Dockerfile
- .dockerignore
- pyproject.toml
- .github/workflows/docker.yml
workflow_dispatch:
jobs:
docker:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v7
- uses: docker/setup-buildx-action@v3
- id: meta
uses: docker/metadata-action@v5
with:
images: ghcr.io/${{ github.repository }}
tags: |
type=raw,value=latest,enable=${{ github.ref == 'refs/heads/master' }}
type=raw,value=dev,enable=${{ github.ref == 'refs/heads/dev' }}
type=ref,event=tag
type=sha,format=short
- uses: docker/login-action@v3
if: github.event_name != 'pull_request'
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: docker/build-push-action@v6
with:
context: .
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max