try to implement docker

This commit is contained in:
kulikov0 committed 2026-05-10 18:13:08 +02:00
1 parent 94adeb2b69
commit 87baf8c8e8
5 files changed
+135

No files matched your search

+42
View File
@@ -0,0 +1,42 @@
name: Build & push bot Docker image
on:
push:
tags:
- 'v*'
workflow_dispatch:
jobs:
build-and-push:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
- uses: docker/setup-buildx-action@v3
- uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: docker/metadata-action@v5
id: meta
with:
images: ghcr.io/${{ github.repository_owner }}/whitelist-bypass-bot
tags: |
type=ref,event=tag
type=raw,value=latest,enable=${{ github.event_name != 'workflow_dispatch' }}
- uses: docker/build-push-action@v6
with:
context: .
file: headless/docker/Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max