Files
pihka-al/.gitea/workflows/deploy.yml
Pihkaal 561fb56419
Some checks failed
ci / ci (22, ubuntu-latest) (push) Has been cancelled
Build and Push Docker Image / build (push) Successful in 4m46s
feat: docker setup
2026-03-25 17:44:23 +01:00

35 lines
893 B
YAML

name: Build and Push Docker Image
on:
push:
branches:
- main
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to Gitea Container Registry
uses: docker/login-action@v3
with:
registry: git.pihkaal.me
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_PASSWORD }}
- name: Build and push Docker image
uses: docker/build-push-action@v6
with:
context: .
push: true
tags: git.pihkaal.me/pihkaal/pihka-al:latest
cache-from: type=registry,ref=git.pihkaal.me/pihkaal/pihka-al:cache
cache-to: type=registry,ref=git.pihkaal.me/pihkaal/pihka-al:cache,mode=max