|
6 | 6 | path: |
7 | 7 | required: false |
8 | 8 | type: string |
| 9 | + service: |
| 10 | + required: false |
| 11 | + type: string |
9 | 12 | # Set skip-image-build to true, to scan the latest image from the registry else set to false for building the image and scanning it |
10 | 13 | skip-image-build: |
11 | 14 | required: false |
@@ -56,14 +59,14 @@ jobs: |
56 | 59 | if: ${{ !inputs.skip-image-build }} |
57 | 60 | working-directory: ${{ inputs.path }} |
58 | 61 | run: | |
59 | | - make build REGISTRY=${{ env.ICR_REGISTRY }}/${{ env.ICR_NAMESPACE }} REGISTRY_USER=${{ secrets.ICR_USERNAME }} REGISTRY_PASSWORD=${{ secrets.ICR_APIKEY }} |
| 62 | + make build SERVICE=${{ inputs.service }} REGISTRY=${{ env.ICR_REGISTRY }}/${{ env.ICR_NAMESPACE }} REGISTRY_USER=${{ secrets.ICR_USERNAME }} REGISTRY_PASSWORD=${{ secrets.ICR_APIKEY }} |
60 | 63 |
|
61 | 64 | - name: Pull latest image Tag |
62 | 65 | if: ${{ inputs.skip-image-build }} |
63 | 66 | working-directory: ${{ inputs.path }} |
64 | 67 | id: image-tag |
65 | 68 | run: | |
66 | | - TAG_VALUE=$(make image-tag) |
| 69 | + TAG_VALUE=$(make image-tag SERVICE=${{ inputs.service }}) |
67 | 70 | IMAGE_NAME=${{ env.ICR_REGISTRY }}/${{ env.ICR_NAMESPACE }}/${{ inputs.image }}:${TAG_VALUE} |
68 | 71 | podman pull --creds ${{ secrets.ICR_USERNAME }}:${{ secrets.ICR_APIKEY }} $IMAGE_NAME |
69 | 72 |
|
@@ -94,13 +97,13 @@ jobs: |
94 | 97 | if: ${{ !inputs.skip-image-build }} |
95 | 98 | working-directory: ${{ inputs.path }} |
96 | 99 | run: | |
97 | | - make build REGISTRY=${{ env.ICR_REGISTRY }}/${{ env.ICR_NAMESPACE }} REGISTRY_USER=${{ secrets.ICR_USERNAME }} REGISTRY_PASSWORD=${{ secrets.ICR_APIKEY }} |
| 100 | + make build SERVICE=${{ inputs.service }} REGISTRY=${{ env.ICR_REGISTRY }}/${{ env.ICR_NAMESPACE }} REGISTRY_USER=${{ secrets.ICR_USERNAME }} REGISTRY_PASSWORD=${{ secrets.ICR_APIKEY }} |
98 | 101 | |
99 | 102 | - name: Pull latest image tag |
100 | 103 | if: ${{ inputs.skip-image-build && inputs.skip-code-license-scan }} |
101 | 104 | working-directory: ${{ inputs.path }} |
102 | 105 | run: | |
103 | | - TAG_VALUE=$(make image-tag) |
| 106 | + TAG_VALUE=$(make image-tag SERVICE=${{ inputs.service }}) |
104 | 107 | IMAGE_NAME=${{ env.ICR_REGISTRY }}/${{ env.ICR_NAMESPACE }}/${{ inputs.image }}:${TAG_VALUE} |
105 | 108 | podman pull --creds ${{ secrets.ICR_USERNAME }}:${{ secrets.ICR_APIKEY }} $IMAGE_NAME |
106 | 109 |
|
|
0 commit comments