Skip to content

fix(deps): update python non-major dependencies #206

fix(deps): update python non-major dependencies

fix(deps): update python non-major dependencies #206

Workflow file for this run

name: Create and publish a Docker image

Check failure on line 1 in .github/workflows/docker.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/docker.yml

Invalid workflow file

(Line: 15, Col: 1): 'permissions' is already defined
on:
push:
branches: ['main']
tags: ['v*']
permissions:
contents: read
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
permissions:
contents: read
packages: read
jobs:
quality:
uses: ./.github/workflows/code-quality.yml
secrets: inherit
test:
uses: ./.github/workflows/test.yml
secrets: inherit
build-and-push-image:
needs: [quality, test]
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Set up QEMU
uses: docker/setup-qemu-action@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v4
- name: Log in to the Container registry
uses: docker/login-action@v4
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v6
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
type=ref,event=branch
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=sha,format=long
- name: Build and push Docker image
uses: docker/build-push-action@v7
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
# Note: If your Dockerfile requires secrets (like .netrc), you need to pass them here.
# For example:
# secrets: |
# "netrc=${{ secrets.NETRC }}"