Skip to content

feat(bot): liben can now shift the blame #21

feat(bot): liben can now shift the blame

feat(bot): liben can now shift the blame #21

name: Docker
on:
push:
paths:
- "bot/**"
- ".github/**"
branches:
- "main"
defaults:
run:
working-directory: "bot"
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}-bot
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout
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: Log into registry ${{ env.REGISTRY }}
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: ./bot
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
cache-from: type=gha
cache-to: type=gha,mode=max