Forráskód Böngészése

Infra: Revert comment action for published images (#3953)

Co-authored-by: Narek Matevosyan <nmatevosyan@provectus.com>
Narekmat 2 éve
szülő
commit
7f7242eb8b

+ 5 - 8
.github/workflows/build-public-image.yml

@@ -64,14 +64,11 @@ jobs:
             JAR_FILE=kafka-ui-api-${{ steps.build.outputs.version }}.jar
           cache-from: type=local,src=/tmp/.buildx-cache
           cache-to: type=local,dest=/tmp/.buildx-cache
-      - name: update status check
-        uses: Sibz/github-status-action@v1.1.6
+      - name: make comment with private deployment link
+        uses: peter-evans/create-or-update-comment@v2
         with:
-          authToken: ${{secrets.GITHUB_TOKEN}}
-          context: "Image published at"
-          state: "success"
-          sha: ${{ github.event.pull_request.head.sha  || github.sha }}
-          target_url: "public.ecr.aws/provectus/kafka-ui-custom-build:${{ steps.extract_branch.outputs.tag }}"
-
+          issue-number: ${{ github.event.pull_request.number }}
+          body: |
+            Image published at public.ecr.aws/provectus/kafka-ui-custom-build:${{ steps.extract_branch.outputs.tag }}
     outputs:
       tag: ${{ steps.extract_branch.outputs.tag }}

+ 0 - 6
.github/workflows/delete-public-image.yml

@@ -32,9 +32,3 @@ jobs:
                 --repository-name kafka-ui-custom-build \
                 --image-ids imageTag=${{ steps.extract_branch.outputs.tag }} \
                 --region us-east-1
-      - name: make comment with private deployment link
-        uses: peter-evans/create-or-update-comment@v3
-        with:
-          issue-number: ${{ github.event.pull_request.number }}
-          body: |
-            Image tag public.ecr.aws/provectus/kafka-ui-custom-build:${{ steps.extract_branch.outputs.tag }} has been removed