Files
calminer/.gitea/workflows/build-and-push.yml
zwitschi 0e51a3883d
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 5s
Deploy to Server / deploy (push) Failing after 2s
Run Tests / test (push) Has been cancelled
fix: Update registry secrets in build and deploy workflows for consistency
2025-10-23 17:39:47 +02:00

29 lines
750 B
YAML

name: Build and Push Docker Image
on:
push:
branches:
- main
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Login to Gitea Registry
uses: docker/login-action@v1
with:
registry: ${{ secrets.REGISTRY_URL }}
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_PASSWORD }}
- name: Build and push Docker image
uses: docker/build-push-action@v2
with:
context: .
push: true
tags: ${{ secrets.REGISTRY_REGISTRY }}/${{ secrets.REGISTRY_USERNAME }}/calminer:latest
cache-from: type=gha
cache-to: type=gha,mode=max