Skip to content

chore: use main branch for quality ci #62

chore: use main branch for quality ci

chore: use main branch for quality ci #62

Workflow file for this run

name: gRPC Gateway - CI
on:
push:
paths:
- '.github/workflows/reusable-general-quality-ci.yml'
- '.github/workflows/reusable-go-build-ci.yml'
- '.github/workflows/reusable-go-quality-ci.yml'
- '.github/workflows/gateway.yml'
- 'pkg/**'
- 'openapiv2/**'
- 'proto/**'
- 'tool/**'
- 'gateway/**'
pull_request:
paths:
- '.github/workflows/reusable-general-quality-ci.yml'
- '.github/workflows/reusable-go-build-ci.yml'
- '.github/workflows/reusable-go-quality-ci.yml'
- '.github/workflows/gateway.yml'
- 'pkg/**'
- 'openapiv2/**'
- 'proto/**'
- 'tool/**'
- 'gateway/**'
jobs:
general-quality-check:
name: General quality check
uses: indrasaputra/arjuna/.github/workflows/reusable-general-quality-ci.yml@main
go-code-quality:
name: Go code quality check
uses: indrasaputra/arjuna/.github/workflows/reusable-go-quality-ci.yml@main
with:
filters: |
changed:
- '.github/workflows/reusable-general-quality-ci.yml'
- '.github/workflows/reusable-go-build-ci.yml'
- '.github/workflows/reusable-go-quality-ci.yml'
- '.github/workflows/gateway.yml'
- 'pkg/**'
- 'openapiv2/**'
- 'proto/**'
- 'tool/**'
- 'gateway/**'
target: gateway
build-push-docker:
name: Build and push docker
needs: [general-quality-check, go-code-quality]
uses: indrasaputra/arjuna/.github/workflows/reusable-go-build-ci.yml@main
with:
filters: |
changed:
- '.github/workflows/reusable-general-quality-ci.yml'
- '.github/workflows/reusable-go-build-ci.yml'
- '.github/workflows/reusable-go-quality-ci.yml'
- '.github/workflows/gateway.yml'
- 'pkg/**'
- 'openapiv2/**'
- 'proto/**'
- 'tool/**'
- 'gateway/**'
target: gateway
service: gateway
dockerfile: ./gateway/dockerfile/gateway.dockerfile
need_go_binary: true
secrets:
DOCKER_HUB_USERNAME: ${{ secrets.DOCKER_HUB_USERNAME }}
DOCKER_HUB_TOKEN: ${{ secrets.DOCKER_HUB_TOKEN }}