build for prod

This commit is contained in:
2025-12-11 19:14:13 +01:00
parent dfaa23d56d
commit 43420e0b28
5 changed files with 85 additions and 2 deletions

View File

@@ -0,0 +1,32 @@
name: Build and Push Docker Image
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Login to Gitea Container Registry
uses: docker/login-action@v3
with:
registry: git.seaturtle.pw
username: ${{ gitea.actor }}
password: ${{ secrets.GITEA_TOKEN }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and push
uses: docker/build-push-action@v6
with:
context: .
push: true
tags: git.seaturtle.pw/cavepediav2/cavepediav2-web:latest
cache-from: type=gha
cache-to: type=gha,mode=max