@@ -103,7 +103,6 @@ jobs:
103103 TF_VAR_SPLUNK_HEC_TOKEN : ${{ secrets.SPLUNK_HEC_TOKEN }}
104104 TF_VAR_SPLUNK_HEC_ENDPOINT : ${{ secrets.SPLUNK_HEC_ENDPOINT }}
105105
106- # just planning for now for safety and until review
107106 run : |
108107 mkdir -p ./build
109108 echo "Running: make terraform env=$ENVIRONMENT workspace=$WORKSPACE stack=networking tf-command=apply"
@@ -119,29 +118,6 @@ jobs:
119118 git tag ${{ needs.metadata.outputs.version }}
120119 git push origin ${{ needs.metadata.outputs.version }}
121120
122- # --- Keeping these just in case: Uncomment to release to GitHub ---
123- # - name: "Create release"
124- # id: create_release
125- # uses: actions/create-release@v1
126- # env:
127- # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
128- # with:
129- # tag_name: ${{ needs.metadata.outputs.version }}
130- # release_name: Release ${{ needs.metadata.outputs.version }}
131- # body: |
132- # Release of ${{ needs.metadata.outputs.version }}
133- # draft: false
134- # prerelease: true
135-
136- # - name: "Upload release asset"
137- # uses: actions/upload-release-asset@v1
138- # env:
139- # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
140- # with:
141- # upload_url: "${{ steps.create_release.outputs.upload_url }}"
142- # asset_path: ./build/lambda.zip
143- # asset_name: lambda-${{ needs.metadata.outputs.version }}.zip
144- # asset_content_type: application/zip
145121 - name : " Notify Slack on PR merge"
146122147123 with :
@@ -153,3 +129,12 @@ jobs:
153129 Author: "${{ github.actor }}"
154130 title: "Pushed to main"
155131 version: "${{ needs.metadata.outputs.version }}"
132+
133+ call-deploy-test :
134+ name : " Trigger TEST deploy (only on success)"
135+ needs : publish
136+ if : ${{ needs.publish.result == 'success' && github.ref == 'refs/heads/main' }}
137+ uses : .github/workflows/cicd-3-test_auto.yaml
138+ with :
139+ ref : ${{ github.sha }}
140+ secrets : inherit
0 commit comments