Skip to content

fix: initialise log record args to empty tuple after formatting message #294

fix: initialise log record args to empty tuple after formatting message

fix: initialise log record args to empty tuple after formatting message #294

Workflow file for this run

name: Publish Docker Image
on:
push:
branches:
- 'main'
- 'test'
paths:
- 'docs/gallery-dl.conf'
- 'gallery_dl_server/**'
- 'icons/**'
- 'templates/**'
- 'Dockerfile'
- 'requirements.txt'
- 'start.sh'
tags:
- 'v*'
workflow_dispatch:
jobs:
docker:
name: Build Docker image and push to Docker Hub and GHCR
if: ${{ (github.event_name == 'push' && 'pass' || (github.event_name == 'workflow_dispatch' && 'pass' || 'fail')) == 'pass' }}
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v4
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
with:
images: |
${{ github.repository }}
ghcr.io/${{ github.repository }}
tags: |
type=ref,event=branch,enable=${{ github.ref_name != github.event.repository.default_branch }}
type=semver,pattern={{version}}
type=raw,value=latest,enable={{is_default_branch}}
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v6
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max