Skip to content

[Snyk] Security upgrade express from 4.16.4 to 4.21.2 #26

[Snyk] Security upgrade express from 4.16.4 to 4.21.2

[Snyk] Security upgrade express from 4.16.4 to 4.21.2 #26

Workflow file for this run

name: Dristi-Pdf workflow
on:
push:
branches:
- main
- develop
paths:
- 'utilities/dristi-pdf/**'
pull_request:
branches:
- main
- develop
paths:
- 'utilities/dristi-pdf/**'
workflow_dispatch:
jobs:
docker_image-build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
fetch-depth: 2
- name: Setup Docker
uses: docker/setup-buildx-action@v1
- name: Login to Azure Container Registry
if: (github.ref == 'refs/heads/develop' || github.ref == 'refs/heads/main') && (github.event_name == 'push' || github.event_name == 'workflow_dispatch')
run: docker login -u pucardev -p ${{ secrets.ACR_PASSWORD }} pucardev.azurecr.io
- name: Build and Push Docker image for dristi-pdf
if: (github.ref == 'refs/heads/develop' || github.ref == 'refs/heads/main') && (github.event_name == 'push' || github.event_name == 'workflow_dispatch')
run: |
docker build --build-arg WORK_DIR="utilities/dristi-pdf" -t pucardev.azurecr.io/dristi-pdf:v1.0.0-${{ github.sha }} -f utilities/dristi-pdf/Dockerfile .
docker push pucardev.azurecr.io/dristi-pdf:v1.0.0-${{ github.sha }}
- name: trigger deployment pipeline
if: github.ref == 'refs/heads/develop' && github.event_name == 'push'
run: |
curl -X POST \
-H "Accept: application/vnd.github.v3+json" \
-H "Authorization: token ${{ secrets.GHUB_TOKEN }}" \
https://api.github.com/repos/pucardotorg/pucar-Devops/actions/workflows/dev.yaml/dispatches \
-d '{"ref":"Dev-0"}'