Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Fosol committed Dec 4, 2023
1 parent 21af0b9 commit e44e7a6
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/ci-cd-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ env:
IMAGE_REGISTRY_USER: ${{ github.actor }}
IMAGE_REGISTRY_PASSWORD: ${{ github.token }}

REPO_NAME: hsb-dashboard
API_IMAGE_NAME: api
APP_IMAGE_NAME: dashboard
DB_MIGRATION_IMAGE_NAME: db-migration
Expand All @@ -38,7 +39,9 @@ jobs:
name: Build and Push to Registry
runs-on: ubuntu-latest
outputs:
output1: ${{ steps.filter.outputs.workflows }}
api: ${{ steps.filter.outputs.api }}
dashboard: ${{ steps.filter.outputs.dashboard }}
db-migration: ${{ steps.filter.outputs.db-migration }}
timeout-minutes: 10
permissions:
contents: read
Expand All @@ -54,7 +57,11 @@ jobs:
id: filter
with:
filters: |
workflows:
api:
- '.github/workflows/**'
dashboard:
- '.github/workflows/**'
db-migration:
- '.github/workflows/**'
## BUILD
Expand Down Expand Up @@ -92,7 +99,7 @@ jobs:
- name: Push API to registry
uses: redhat-actions/push-to-registry@v2
with:
image: ${{ github.repository }}/${{ steps.build-api.outputs.image }}
image: ${{ env.REPO_NAME }}/${{ steps.build-api.outputs.image }}
tags: ${{ steps.build-api.outputs.tags }}
registry: ${{ env.IMAGE_REGISTRY }}
username: ${{ env.IMAGE_REGISTRY_USER }}
Expand All @@ -101,7 +108,7 @@ jobs:
- name: Push Dashboard to registry
uses: redhat-actions/push-to-registry@v2
with:
image: ${{ github.repository }}/${{ steps.build-app.outputs.image }}
image: ${{ env.REPO_NAME }}/${{ steps.build-app.outputs.image }}
tags: ${{ steps.build-app.outputs.tags }}
registry: ${{ env.IMAGE_REGISTRY }}
username: ${{ env.IMAGE_REGISTRY_USER }}
Expand All @@ -110,7 +117,7 @@ jobs:
- name: Push DB Migration to registry
uses: redhat-actions/push-to-registry@v2
with:
image: ${{ github.repository }}/${{ steps.build-db-migration.outputs.image }}
image: ${{ env.REPO_NAME }}/${{ steps.build-db-migration.outputs.image }}
tags: ${{ steps.build-db-migration.outputs.tags }}
registry: ${{ env.IMAGE_REGISTRY }}
username: ${{ env.IMAGE_REGISTRY_USER }}
Expand Down

0 comments on commit e44e7a6

Please sign in to comment.