Files
website/.gitea/workflows/main.yaml
Steffen Illium f4443822dd
Some checks failed
Next.js App CI / docker (push) Failing after 3h14m33s
disable caching for now
2025-09-15 11:08:56 +02:00

35 lines
1.0 KiB
YAML

name: Next.js App CI
on:
push:
branches: [ "main" ]
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Login to Gitea Package Registry
uses: docker/login-action@v3
with:
registry: ${{vars.LOCAL_REGISTRY}}
username: ${{ VARS.USER }}
password: ${{ secrets.TOKEN }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/amd64
push: true
tags: |
${{ vars.LOCAL_REGISTRY }}/${{ gitea.repository_owner }}/website:latest
${{ vars.LOCAL_REGISTRY }}/${{ gitea.repository_owner }}/website:${{ gitea.sha }}
# make this work in future releases
# cache-from: type=registry,ref=${{ vars.LOCAL_REGISTRY }}/${{ gitea.repository_owner }}/website:buildcache
# cache-to: type=registry,ref=${{ vars.LOCAL_REGISTRY }}/${{ gitea.repository_owner