Files
taco-blog/.gitea/workflows/docker.yaml
taco b5075683ac
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 5s
Build and Publish Docker Image / build (push) Failing after 8s
Update .gitea/workflows/docker.yaml
2026-05-13 21:00:22 +00:00

29 lines
723 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: |
${{ gitea.server_url }}/${{ gitea.repository }}:latest
${{ gitea.server_url }}/${{ gitea.repository }}:${{ gitea.sha }}