Files
rezepte/.gitea/workflows/docker-build.yml
Elias Kohout 27bafee27e
All checks were successful
Build and Push Docker Container / build-and-push (push) Successful in 52s
update docker build/ push workflow to new url
2025-09-28 20:14:47 +02:00

28 lines
692 B
YAML

# .gitea/workflows/docker-build.yml
name: Build and Push Docker Container
on:
push:
branches:
- "main"
jobs:
build-and-push:
runs-on:
- ubuntu-22.04
steps:
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
registry: g.eliaskohout.de
username: ${{ secrets.USERNAME }}
password: ${{ secrets.ACCESS_TOKEN }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and push
uses: docker/build-push-action@v6
with:
push: true
tags: "g.eliaskohout.de/rezepte/rezepte:${{gitea.sha}},g.eliaskohout.de/rezepte/rezepte:latest"