Skip to content

Commit

Permalink
[Update] GH action to publish-docker-container to include docker scou…
Browse files Browse the repository at this point in the history
…t BOM
  • Loading branch information
samatstariongroup committed Dec 10, 2024
1 parent 79a5a46 commit a6d5071
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/publish-docker-container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
push:
tags:
- 'web-*'
pull_request:
branches: [ "**" ]

jobs:
build:
Expand All @@ -27,18 +29,20 @@ jobs:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}

- name: Build and push
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: .
file: ./COMETwebapp/Dockerfile
push: ${{ github.event_name != 'pull_request' }}
provenance: mode=max
tags: ${{ steps.meta.outputs.tags }}
secrets: |
"DEVEXPRESS_NUGET_KEY=${{ secrets.DEVEXPRESS_NUGET_KEY }}"
"PACKAGE_TOKEN=${{ secrets.PACKAGE_TOKEN }}"
- name: Invoke deployment hook
if: github.ref_type == 'tag'
uses: distributhor/workflow-webhook@v3
env:
webhook_url: ${{ secrets.WEBHOOK_URL }}
Expand Down

0 comments on commit a6d5071

Please sign in to comment.