Skip to content

Commit

Permalink
AAE-26244 ECR Docker image URL in output (#803)
Browse files Browse the repository at this point in the history
  • Loading branch information
wojciech-piotrowiak authored Nov 11, 2024
1 parent d2f24da commit ff7a2bd
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
10 changes: 10 additions & 0 deletions .github/actions/docker-build-image/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ inputs:
description: The label name for creating a preview version
required: false
default: 'preview'
outputs:
ecr-docker-image-url:
description: The ECR docker image URL
value: ${{ steps.set-ecr-docker-image-url.outputs.ecr-docker-image-url }}

runs:
using: composite
Expand Down Expand Up @@ -230,3 +234,9 @@ runs:
echo "${{ steps.login-ecr.outputs.registry }}/${{ env.IMAGE_NAME }}@${{ steps.build-and-push.outputs.digest }}"
echo "\`\`\`\`"
} >> $GITHUB_STEP_SUMMARY
- name: set ecr-docker-image-url
id: set-ecr-docker-image-url
if: env.PUSH_IMAGE == 'true'
shell: bash
run: echo "ecr-docker-image-url=${{ steps.login-ecr.outputs.registry }}/${{ env.IMAGE_NAME }}@${{ steps.build-and-push.outputs.digest }}" >> $GITHUB_OUTPUT
2 changes: 2 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -455,6 +455,8 @@ When using OIDC on AWS, inputs `aws-access-key-id` and `aws-secret-access-key` c
# preview-label: ${{ vars.PREVIEW_LABEL }} # optional
```

The returned output is the ECR image digest.

### docker-dump-containers-logs

Dumps Docker containers logs. Each container's log will be stored in a separate `<container_name>.log` file. All files will be archived by default under `containers-logs-<job_id>-<job_retry_number>-<timestamp>.tar.gz` and will be available to download via the workflow's summary page.
Expand Down
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v8.3.0
v8.3.1

0 comments on commit ff7a2bd

Please sign in to comment.