Skip to content

Commit

Permalink
Merge pull request #101 from Staffbase/upwind2
Browse files Browse the repository at this point in the history
  • Loading branch information
timdittler authored Oct 17, 2024
2 parents e476333 + cb62b2b commit b0cb186
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,13 @@ jobs:
| `gitops-prod` | Files which should be updated by the GitHub Action for PROD, must be relative to the root of the GitOps repository | |
| `working-directory` | The directory in which the GitOps action should be executed. The docker-file variable should be relative to working directory. | `.` |

## Outputs

| Name | Description |
|-----------------|---------------------|
| `docker-digest` | Digest of the image |
| `docker-tag` | Tag of the image |

## Contributing

Please read [CONTRIBUTING.md](CONTRIBUTING.md) for details on our code of conduct, and the process for submitting pull requests to us.
Expand Down
13 changes: 3 additions & 10 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ outputs:
docker-tag:
description: 'Docker tag'
value: ${{ steps.preparation.outputs.tag }}
docker-digest:
description: 'Docker digest'
value: ${{ steps.docker_build.outputs.digest }}

runs:
using: "composite"
Expand Down Expand Up @@ -293,16 +296,6 @@ runs:
done <<< "${{ inputs.gitops-dev }}"
fi
- name: Emit Image Build Event to Upwind.io
if: vars.UPWIND_CLIENT_ID != '' && secrets.UPWIND_CLIENT_SECRET != '' && vars.UPWIND_ORGANIZATION_ID != ''
uses: upwindsecurity/create-image-build-event-action@v2
with:
image: "${{ inputs.docker-image }}"
image_sha: "${{ steps.docker_build.outputs.digest }}"
upwind_client_id: ${{ vars.UPWIND_CLIENT_ID }}
upwind_client_secret: ${{ secrets.UPWIND_CLIENT_SECRET }}
upwind_organization_id: ${{ vars.UPWIND_ORGANIZATION_ID }}

branding:
icon: 'git-merge'
color: 'blue'

0 comments on commit b0cb186

Please sign in to comment.