ci: align workflows with current monorepo structure
Co-authored-by: Velik <hongochai10@users.noreply.github.com>
This commit is contained in:
39
.github/workflows/docker-build.yml
vendored
39
.github/workflows/docker-build.yml
vendored
@@ -6,8 +6,8 @@ on:
|
||||
- main
|
||||
- develop
|
||||
paths:
|
||||
- 'services/iam-service/**'
|
||||
- 'apps/web-*/**'
|
||||
- 'services/iam-service-net/**'
|
||||
- 'apps/web-client/**'
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
@@ -28,38 +28,13 @@ jobs:
|
||||
- name: Build and push IAM Service
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
context: ./services/iam-service
|
||||
context: ./services/iam-service-net
|
||||
push: true
|
||||
tags: |
|
||||
goodgo/iam-service:latest
|
||||
goodgo/iam-service:${{ github.sha }}
|
||||
cache-from: type=registry,ref=goodgo/iam-service:buildcache
|
||||
cache-to: type=registry,ref=goodgo/iam-service:buildcache,mode=max
|
||||
|
||||
build-web-admin:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
- name: Login to Docker Hub
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
username: ${{ secrets.DOCKER_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||
|
||||
- name: Build and push Web Admin
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
context: ./apps/web-admin
|
||||
push: true
|
||||
tags: |
|
||||
goodgo/web-admin:latest
|
||||
goodgo/web-admin:${{ github.sha }}
|
||||
cache-from: type=registry,ref=goodgo/web-admin:buildcache
|
||||
cache-to: type=registry,ref=goodgo/web-admin:buildcache,mode=max
|
||||
goodgo/iam-service-net:latest
|
||||
goodgo/iam-service-net:${{ github.sha }}
|
||||
cache-from: type=registry,ref=goodgo/iam-service-net:buildcache
|
||||
cache-to: type=registry,ref=goodgo/iam-service-net:buildcache,mode=max
|
||||
|
||||
build-web-client:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
Reference in New Issue
Block a user