diff --git a/.github/workflows/ci-cd-dev.yml b/.github/workflows/ci-cd-dev.yml index 299df727..caf2906f 100644 --- a/.github/workflows/ci-cd-dev.yml +++ b/.github/workflows/ci-cd-dev.yml @@ -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 @@ -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 @@ -54,7 +57,11 @@ jobs: id: filter with: filters: | - workflows: + api: + - '.github/workflows/**' + dashboard: + - '.github/workflows/**' + db-migration: - '.github/workflows/**' ## BUILD @@ -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 }} @@ -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 }} @@ -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 }}