Skip to content

Commit

Permalink
Final Testing CI/CD pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
shimsha24 committed Sep 14, 2024
1 parent 4e8c82a commit 9c35e4e
Showing 1 changed file with 22 additions and 6 deletions.
28 changes: 22 additions & 6 deletions .github/workflows/cd-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,30 @@ jobs:
deploy:
runs-on: ubuntu-latest
steps:

- name: Install Cosign
uses: sigstore/[email protected]
- uses: azure/login@v1
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}

- name: Deploy Container App
uses: azure/container-apps-deploy-action@v1
with:
imageToDeploy: ${{ secrets.DOCKERHUB_USERNAME }}/devops-labs:latest
containerAppName: devops-app
containerAppEnvironment: devops-app-env
resourceGroup: devsecops-lab
location: australiaeast
targetPort: 5000

- name: Install Cosign
uses: sigstore/[email protected]

- name: Verify image signature
env:
- name: Verify image signature
env:
IMAGE: ${{ secrets.DOCKERHUB_USERNAME }}/devops-labs:latest
GITHUB_ISSUER: https://token.actions.githubusercontent.com
# CERT_IDENTITY_REGEXP: https://github.com/.*/devsecops-lab-app/.github/workflows/ci-pipeline.yml.*
CERT_IDENTITY_REGEXP: https://github.com/.*/IATD-DevSecOps/.github/workflows/ci-pipeline.yml.*
run: |
run: |
cosign verify $IMAGE --certificate-identity-regexp $CERT_IDENTITY_REGEXP --certificate-oidc-issuer $GITHUB_ISSUER
submit_results:
Expand All @@ -28,6 +41,9 @@ jobs:
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}

- name: Install jq
run: sudo apt-get install jq

- name: Azure CLI script
id: token-gen
uses: azure/CLI@v1
Expand Down

0 comments on commit 9c35e4e

Please sign in to comment.