Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AAE-29319 Force creation of preview version #834

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .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'
force-preview:
description: Force create the preview version
required: false
default: 'false'
outputs:
ecr-docker-image-url:
description: The ECR docker image URL
Expand All @@ -63,7 +67,7 @@ runs:
steps:
- name: Set is_preview env variable
env:
IS_PREVIEW: ${{ github.event_name == 'pull_request' && (contains(github.event.pull_request.labels.*.name, inputs.preview-label) || contains(github.event.pull_request.labels.*.name, inputs.preview-label.default) )}}
IS_PREVIEW: ${{ github.event_name == 'pull_request' && (contains(github.event.pull_request.labels.*.name, inputs.preview-label) || contains(github.event.pull_request.labels.*.name, inputs.preview-label.default) || inputs.force-preview == 'true' )}}
shell: bash
run: |
echo "IS_PREVIEW=$IS_PREVIEW" >> $GITHUB_ENV
Expand Down
1 change: 1 addition & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -454,6 +454,7 @@ When using OIDC on AWS, inputs `aws-access-key-id` and `aws-secret-access-key` c
# grype-scan-enabled: true # optional
# grype-fail-build: true # optional
# preview-label: ${{ vars.PREVIEW_LABEL }} # optional
# force-preview: true # optional
```

The returned output is the ECR image digest.
Expand Down
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v8.6.1
v8.7.1
Loading