Add docker build workflow
Some checks failed
Build Docker Image / docker (push) Failing after 29s

This commit is contained in:
Lol3rrr
2026-09-27 02:47:34 +02:00
parent d4541950a9
commit ae078f3a49

34
.github/workflows/docker.yaml vendored Normal file
View File

@@ -0,0 +1,34 @@
name: Build Docker Image
on:
push:
branches:
- main
permissions:
packages: write
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Log in to Gitea Container Registry
uses: docker/login-action@v3
with:
registry: gitea.lol3r.com
username: leon
password: ${{ secrets.DOCKER_PAT }}
- name: Build and push
uses: docker/build-push-action@v6
with:
context: .
file: ./Dockerfile
push: true
tags: |
gitea.lol3r.com/leon/blog:latest
gitea.lol3r.com/leon/blog:${{ gitea.sha }}