Skip to content

precommit why are you not smart :( #214

precommit why are you not smart :(

precommit why are you not smart :( #214

Workflow file for this run

name: build-docker-image
on:
workflow_dispatch:
push:
branches:
- develop
paths:
- 'metropolis/**'
- 'core/**'
- 'templates/**'
- 'requirements.txt'
- 'Dockerfile'
- '.dockerignore'
- '.github/workflows/build.yml'
permissions:
packages: write
jobs:
build:
name: build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Docker meta
id: meta
uses: docker/metadata-action@v3
with:
images: |
ghcr.io/${{ github.repository }}
flavor: |
latest=auto
tags: |
type=sha
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to GHCR
if: github.event_name != 'pull_request'
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v2
with:
context: .
platforms: linux/amd64,linux/arm64
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}