diff --git a/README.md b/README.md index 1d8b157..b5c6448 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/action.yml b/action.yml index b6d55cf..626060b 100644 --- a/action.yml +++ b/action.yml @@ -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" @@ -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'