Files
cmusthaves/.gitea/workflows/build.yml
T
karina df4a092bf7
Build and Push Custom Image / build (push) Failing after 45s
github-independent (me dependent)
2026-05-10 22:25:08 +04:00

35 lines
910 B
YAML

name: Build and Push Custom Image
on:
push:
branches: ["main"]
paths:
- "Dockerfile"
- ".gitea/workflows/build.yml"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: https://git.karter.dev/actions/checkout@v4
- name: Set up Docker Buildx
uses: https://git.karter.dev/docker/setup-buildx-action@v3
- name: Login to Gitea Registry
uses: https://git.karter.dev/docker/login-action@v3
with:
registry: git.karter.dev
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: https://git.karter.dev/docker/build-push-action@v5
with:
context: .
push: true
tags: |
git.karter.dev/${{ github.repository }}:latest
git.karter.dev/${{ github.repository }}:${{ github.sha }}