Merge pull request 'test/ci-workflow' (#7) from test/ci-workflow into main
Some checks failed
Deploy / Build and Push Images (push) Failing after 1m20s
Deploy / Deploy to Knative (push) Has been skipped

Reviewed-on: #7
Reviewed-by: gitea_admin <gitea@local.domain>
This commit is contained in:
2026-01-22 10:36:57 +00:00
2 changed files with 5 additions and 14 deletions

View File

@@ -5,10 +5,6 @@ on:
branches:
- main
env:
PNPM_VERSION: 9
NODE_VERSION: 20
jobs:
build:
name: Build Check
@@ -19,14 +15,11 @@ jobs:
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: ${{ env.PNPM_VERSION }}
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
cache: pnpm
node-version-file: '.nvmrc'
- name: Install dependencies
run: pnpm install --frozen-lockfile

View File

@@ -6,8 +6,6 @@ on:
- main
env:
PNPM_VERSION: 9
NODE_VERSION: 20
REGISTRY: gitea.tegical.world
IMAGE_PREFIX: tegical/seclusion
@@ -45,8 +43,8 @@ jobs:
tags: |
${{ env.REGISTRY }}/${{ env.IMAGE_PREFIX }}-web:${{ steps.meta.outputs.tag }}
${{ env.REGISTRY }}/${{ env.IMAGE_PREFIX }}-web:latest
cache-from: type=gha
cache-to: type=gha,mode=max
cache-from: type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_PREFIX }}-web:buildcache
cache-to: type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_PREFIX }}-web:buildcache,mode=max
- name: Build and push API image
uses: docker/build-push-action@v6
@@ -57,8 +55,8 @@ jobs:
tags: |
${{ env.REGISTRY }}/${{ env.IMAGE_PREFIX }}-api:${{ steps.meta.outputs.tag }}
${{ env.REGISTRY }}/${{ env.IMAGE_PREFIX }}-api:latest
cache-from: type=gha
cache-to: type=gha,mode=max
cache-from: type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_PREFIX }}-api:buildcache
cache-to: type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_PREFIX }}-api:buildcache,mode=max
deploy:
name: Deploy to Knative