diff --git a/.github/workflows/testing-ci-pipeline.yml b/.github/workflows/testing-ci-pipeline.yml index 6a5be910..73a8200b 100644 --- a/.github/workflows/testing-ci-pipeline.yml +++ b/.github/workflows/testing-ci-pipeline.yml @@ -6,7 +6,7 @@ on: env: REGISTRY: ghcr.io - IMAGE_NAME: ${{ github.repository }} + IMAGE_NAME: ${{ github.repository }}-test jobs: test-app: @@ -47,12 +47,12 @@ jobs: - name: Build an image from Dockerfile run: | - docker build -t ${{ env.IMAGE_NAME }}-test:${{ github.sha }} . + docker build -t ${{ env.IMAGE_NAME }}:${{ github.sha }} . - name: Run Trivy vulnerability scanner uses: aquasecurity/trivy-action@master with: - image-ref: "${{ env.IMAGE_NAME }}-test:${{ github.sha }}" + image-ref: "${{ env.IMAGE_NAME }}:${{ github.sha }}" format: "template" template: "@/contrib/sarif.tpl" output: "trivy-results.sarif" @@ -74,8 +74,8 @@ jobs: - name: Push image run: | - docker tag ${{ env.IMAGE_NAME }}-test:${{ github.sha }} ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} - docker tag ${{ env.IMAGE_NAME }}-test:${{ github.sha }} ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}-test:${{ github.sha }} + docker tag ${{ env.IMAGE_NAME }}:${{ github.sha }} ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} + docker tag ${{ env.IMAGE_NAME }}:${{ github.sha }} ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.sha }} docker push --all-tags ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} deploy: