move backend to new structure

This commit is contained in:
2024-12-22 21:39:36 +01:00
parent 3c601caf02
commit 5658c10b56
28 changed files with 15 additions and 367 deletions

View File

@@ -3,7 +3,8 @@ name: Release Backend service to Docker Hub and Deploy to Kubernetes
on:
push:
paths:
- "backend/**"
- "cmd/backend/**"
- "pkg/**"
- "deployment/backend/**"
- ".github/workflows/backend-cd.yml"
@@ -46,6 +47,6 @@ jobs:
uses: docker/build-push-action@v5
with:
push: true
context: "{{defaultContext}}:backend"
context: "{{defaultContext}}:cmd/backend"
tags: vcscsvcscs/gheritage-backend-service:${{steps.create_image_tag.outputs.result}}
platforms: linux/arm64

View File

@@ -2,19 +2,20 @@ name: Backend Continuous Integration
on:
push:
paths:
- "backend/**"
- "cmd/backend/**"
- "pkg/**"
jobs:
lint:
uses: ./.github/workflows/go_lint.yml
with:
working-directory: 'backend'
working-directory: 'cmd/backend'
build:
needs: lint
uses: ./.github/workflows/go_build.yml
with:
working-directory: 'backend'
working-directory: 'cmd/backend'
test:
needs: build
uses: ./.github/workflows/go_test.yml
with:
working-directory: 'backend'
working-directory: 'cmd/backend'