Files
taco-blog/.gitea/workflows/docker.yaml
taco 6d3b6b8568
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 4s
Build and Publish Docker Image / build (push) Successful in 13s
Update .gitea/workflows/docker.yaml
2026-05-13 21:05:23 +00:00

29 lines
715 B
YAML

name: Build and Publish Docker Image
on:
push:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Log in to Gitea Container Registry
uses: docker/login-action@v3
with:
registry: ${{ gitea.server_url }}
username: ${{ gitea.actor }}
password: ${{ secrets.PAT }}
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: |
git.toomuchtaco.net/${{ gitea.repository }}:latest
git.toomuchtaco.net/${{ gitea.repository }}:${{ gitea.sha }}