Skip to content

Commit 7a7271a

Browse files
authored
Merge pull request #60 from malikparvez/malikparvez-patch-37
Update ci.yml
2 parents c334290 + 47494bd commit 7a7271a

File tree

1 file changed

+18
-20
lines changed

1 file changed

+18
-20
lines changed

.github/workflows/ci.yml

Lines changed: 18 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -136,13 +136,6 @@ jobs:
136136
- name: Run Tests
137137
run: ${{ inputs.test_command }}
138138

139-
140-
deploy-to-ci:
141-
needs: pr_testing
142-
if: ${{ inputs.enable_deployment }}
143-
runs-on: ubuntu-latest
144-
steps:
145-
146139
- name: Configure AWS credentials
147140
if: ${{ github.event_name == 'push' && github.ref_name == 'main' }}
148141
uses: aws-actions/configure-aws-credentials@v4
@@ -191,19 +184,24 @@ jobs:
191184
tags: ${{ steps.meta.outputs.tags }}
192185
labels: ${{ steps.meta.outputs.labels }}
193186

194-
- name: Mend Image Scan
195-
if: ${{ inputs.enable_security_scan && github.event_name == 'push' && github.ref_name == 'main' }}
196-
env:
197-
MEND_USER_KEY: ${{ secrets.CCM_MEND_API_KEY }}
198-
MEND_EMAIL: ${{ secrets.CCM_MEND_EMAIL }}
199-
MEND_URL: https://saas-eu.whitesourcesoftware.com
200-
run: |
201-
curl https://downloads.mend.io/cli/linux_amd64/mend -o /usr/local/bin/mend && chmod +x /usr/local/bin/mend
202-
docker image ls
203-
mend version
204-
mend auth info --non-interactive
205-
mend image ${{ inputs.ecr_uri }}/${{ inputs.docker_image_name }}:${{ steps.set-vars.outputs.IMAGE_TAG }} --format text --local-pull --scope Puppet_GHC//GH_${{ inputs.docker_image_name }}//GH_${{ inputs.docker_image_name }}
206-
187+
#- name: Mend Image Scan
188+
# if: ${{ inputs.enable_security_scan && github.event_name == 'push' && github.ref_name == 'main' }}
189+
# env:
190+
# MEND_USER_KEY: ${{ secrets.CCM_MEND_API_KEY }}
191+
# MEND_EMAIL: ${{ secrets.CCM_MEND_EMAIL }}
192+
# MEND_URL: https://saas-eu.whitesourcesoftware.com
193+
# run: |
194+
# curl https://downloads.mend.io/cli/linux_amd64/mend -o /usr/local/bin/mend && chmod +x /usr/local/bin/mend
195+
# docker image ls
196+
# mend version
197+
# mend auth info --non-interactive
198+
# mend image ${{ inputs.ecr_uri }}/${{ inputs.docker_image_name }}:${{ steps.set-vars.outputs.IMAGE_TAG }} --format text --local-pull --scope Puppet_GHC//GH_${{ inputs.docker_image_name }}//GH_${{ inputs.docker_image_name }}
199+
200+
deploy-to-ci:
201+
needs: pr_testing
202+
if: ${{ inputs.enable_deployment && github.event_name == 'push' && github.ref_name == 'main' }}
203+
runs-on: ubuntu-latest
204+
steps:
207205
- name: Create GitHub App Token
208206
uses: actions/create-github-app-token@v1
209207
id: app-token

0 commit comments

Comments
 (0)