Skip to content

Commit

Permalink
Emit image build event for upwind
Browse files Browse the repository at this point in the history
  • Loading branch information
timdittler committed Oct 17, 2024
1 parent d2799af commit cb4bb4a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/template_gitops.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ jobs:
owner: ${{inputs.gitops-organization }}

- name: GitOps (build, push and deploy a new Docker image)
id: gitops
uses: Staffbase/gitops-github-action@v6.3
with:
docker-registry: ${{ inputs.docker-registry }}
Expand All @@ -129,3 +130,13 @@ jobs:
gitops-stage: ${{ inputs.gitops-stage }}
gitops-prod: ${{ inputs.gitops-prod }}
working-directory: ${{ inputs.working-directory }}

- name: Emit Image Build Event to Upwind.io
if: ${{ vars.UPWIND_CLIENT_ID != '' && vars.UPWIND_ORGANIZATION_ID != '' }}
uses: upwindsecurity/create-image-build-event-action@v2
with:
image: "${{ inputs.docker-image }}"
image_sha: "${{ steps.gitops.outputs.digest }}"
upwind_client_id: ${{ vars.UPWIND_CLIENT_ID }}
upwind_client_secret: ${{ secrets.UPWIND_CLIENT_SECRET }}
upwind_organization_id: ${{ vars.UPWIND_ORGANIZATION_ID }}

0 comments on commit cb4bb4a

Please sign in to comment.