Skip to content

feat(init): adds initial gitlab workflows #1

feat(init): adds initial gitlab workflows

feat(init): adds initial gitlab workflows #1

name: "agate frontend pipeline"
permissions:
contents: write
pull-requests: write
id-token: write
issues: write
on:
pull_request:
branches: [main, develop]
push:
branches: [main, develop]
merge_group:
branches: [main, develop]
jobs:
check-single-commit:
name: '.'
uses: ./.github/workflows/check_single_commit.yml
secrets: inherit
# gitleaks:
# name: '.'
# uses: ./.github/workflows/gitleaks.yml
# needs: check-single-commit
# secrets: inherit
vulnerability-scan:
name: '.'
uses: ./.github/workflows/vulnrability_scan.yml
needs: [ check-single-commit ]
secrets: inherit
unit-test-sonarqube:
name: '.'
uses: ./.github/workflows/unit_test_sonarqube.yml
needs: [ check-single-commit ]
secrets: inherit
with:
sonar-project-key: "blw-ofag-ufag_atlas-agate-frontend"
semantic-release:
name: '.'
if: ${{ github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/develop') }}
uses: ./.github/workflows/semantic_release.yml
needs: [unit-test-sonarqube, vulnerability-scan]
secrets: inherit
build-and-push:
name: '.'
if: ${{ github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/develop') }}
uses: ./.github/workflows/build_push_s3.yml
needs: [semantic-release ]
secrets: inherit
with:
version: ${{ needs.semantic-release.outputs.version }}
environment: ${{ github.ref == 'refs/heads/develop' && 'develop' || 'integration' }}
merge-main-develop:
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
name: '.'
uses: ./.github/workflows/merge_main_develop.yml
needs: [ semantic-release ]
secrets: inherit