move auth to auth

This commit is contained in:
2024-12-22 21:33:46 +01:00
parent 877557febe
commit 3c601caf02
21 changed files with 279 additions and 265 deletions

View File

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

View File

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

View File

@@ -20,10 +20,8 @@ jobs:
- name: Install dependencies
run: |
cd ${{ inputs.working-directory }}
go get
- name: Build
run: |
cd ${{ inputs.working-directory }}
go build .
go build ${{ inputs.working-directory }}

View File

@@ -10,17 +10,16 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Go 1.22.x'
- name: Setup Go 1.23.x'
uses: actions/setup-go@v5
with:
go-version: '1.22.x'
go-version: '1.23.x'
- name: Display Go version
run: go version
- name: Install dependencies
run: |
cd ${{ inputs.working-directory }}
go get
- name: Run tests

15
.github/workflows/pkg-ci.yml vendored Normal file
View File

@@ -0,0 +1,15 @@
name: Common Package Continuous Integration
on:
push:
paths:
- "pkg/**"
jobs:
lint:
uses: ./.github/workflows/go_lint.yml
with:
working-directory: 'pkg'
test:
needs: lint
uses: ./.github/workflows/go_test.yml
with:
working-directory: 'pkg'