mirror of
https://github.com/vcscsvcscs/GenerationsHeritage.git
synced 2025-08-12 22:09:07 +02:00
move auth to auth
This commit is contained in:
5
.github/workflows/auth-service-cd.yml
vendored
5
.github/workflows/auth-service-cd.yml
vendored
@@ -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
|
||||
|
9
.github/workflows/auth-service-ci.yml
vendored
9
.github/workflows/auth-service-ci.yml
vendored
@@ -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'
|
4
.github/workflows/go_build.yml
vendored
4
.github/workflows/go_build.yml
vendored
@@ -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 }}
|
5
.github/workflows/go_test.yml
vendored
5
.github/workflows/go_test.yml
vendored
@@ -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
15
.github/workflows/pkg-ci.yml
vendored
Normal 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'
|
Reference in New Issue
Block a user