Skip to content
Merged
Show file tree
Hide file tree
Changes from 7 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
12 changes: 12 additions & 0 deletions .github/actions/container-cleanup/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Container Cleanup
description: Remove container and clean up image caches.

runs:
using: composite
steps:
- name: Cleanup container and images
shell: bash
run: |
docker rm -f ${CONTAINER_ID} || true
docker image prune -a --force --filter "until=24h"
docker system df
40 changes: 40 additions & 0 deletions .github/actions/container-pull/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Container Pull
description: Login to ECR, get image URI from current workflow artifacts, then pull the image onto host runner.

inputs:
aws_region:
description: AWS Region for docker image repository
required: true
aws_account_id:
description: AWS Account ID for docker image registry
required: true
artifact_name:
description: Docker image URI that is built and saved as artifact within workflows
required: true
type: string

runs:
using: composite
steps:

- name: ECR login
shell: bash
run: |
aws ecr get-login-password --region ${{ inputs.aws_region }} | docker login --username AWS --password-stdin ${{ inputs.aws_account_id }}.dkr.ecr.${{ inputs.aws_region }}.amazonaws.com

- name: Download image URI artifact
uses: actions/download-artifact@v4
with:
name: ${{ inputs.artifact_name }}

- name: Resolve image URI for test
shell: bash
run: |
IMAGE_URI=$(cat image_uri.txt)
echo "Resolved image URI: $IMAGE_URI"
echo "IMAGE_URI=$IMAGE_URI" >> $GITHUB_ENV

- name: Pull image
shell: bash
run: |
docker pull $IMAGE_URI
2 changes: 1 addition & 1 deletion .github/actions/pr-permission-gate/action.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: PR Permission Gate
description: Fails the workflow if the PR sender lacks the required repository permission
description: Fails the workflow if the PR sender lacks the required repository permission.
inputs:
required-level:
description: Minimum permission level required (read|triage|write|maintain|admin)
Expand Down
Loading
Loading