Skip to content

[pre-commit.ci] pre-commit autoupdate #2423

[pre-commit.ci] pre-commit autoupdate

[pre-commit.ci] pre-commit autoupdate #2423

Workflow file for this run

name: Docker Images CI
on:
push:
branches: ["main"]
tags:
- '**'
pull_request:
merge_group:
concurrency:
group: buildx-${{ github.event.pull_request.number || github.ref_name }}
cancel-in-progress: false
jobs:
docker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: batmac
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: |
batmac/ccat
ghcr.io/batmac/ccat
tags: |
type=ref,event=branch
type=ref,event=pr
type=edge,branch=main
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/amd64,linux/arm64,linux/arm/v7,
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max