Skip to content

Commit

Permalink
update cicd pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchelbaker committed Jul 29, 2024
1 parent 8cc0658 commit b567b41
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 7 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/build_docker_containers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,17 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Build .env files
uses: ./.github/actions/build-env
with:
NODE_ENV_DEV: ${{ secrets.NODE_ENV_DEV }}
NODE_PORT: ${{ secrets.NODE_PORT }}
PG_USER: ${{ secrets.PG_USER }}
PG_HOST: ${{ secrets.PG_HOST }}
PG_DB: ${{ secrets.PG_DB }}
PG_PASSWORD: ${{ secrets.PG_PASSWORD }}
PG_PORT: ${{ secrets.PG_PORT }}

- name: Deploy Docker images
uses: ./.github/actions/deploy-docker-images
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/run_cicd_pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ jobs:

sonarcloud-analysis:
uses: ./.github/workflows/run_sonarcloud.yaml
with:
ENVIRONMENT: Development
secrets: inherit
needs:
- run-docker
Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/run_sonarcloud.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,6 @@ on:
paths:
- ".github/workflows/run_sonarcloud.yaml"
workflow_call:
inputs:
ENVIRONMENT:
required: true
type: string
secrets:
SONAR_TOKEN:
required: true
Expand All @@ -48,7 +44,7 @@ permissions:
jobs:
sonarcloud-analysis:
runs-on: ubuntu-latest
environment: ${{ inputs.ENVIRONMENT }}
environment: Development
steps:
- name: Analyze with SonarCloud
uses: SonarSource/[email protected]
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/run_unit_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ jobs:
unit-tests:
name: Unit tests
runs-on: ubuntu-latest
environment: Development
defaults:
run:
working-directory: ./client-app
Expand Down

0 comments on commit b567b41

Please sign in to comment.