Skip to content

ImageCanary

ImageCanary #13292

Workflow file for this run

name: ImageCanary
on:
workflow_dispatch:
schedule:
- cron: '0 */1 * * *'
jobs:
image-canary:
runs-on: ubuntu-latest
permissions:
id-token: write # aws-actions/[email protected]
if: github.repository == 'aws/karpenter-provider-aws'
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@a03048d87541d1d9fcf2ecf528a4a65ba9bd7838 # v5.0.0
with:
role-to-assume: arn:aws:iam::${{ vars.READONLY_ACCOUNT_ID }}:role/${{ vars.READONLY_ROLE_NAME }}
aws-region: ${{ vars.READONLY_REGION }}
role-duration-seconds: 900
# Authenticate to public ECR to prevent rate limiting
- uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # v3.6.0
with:
registry: public.ecr.aws
logout: true
env:
AWS_REGION: us-east-1
- name: Run image canary
env:
GH_TOKEN: ${{ github.token }}
run: ./hack/image_canary.sh
- name: Notify slack of failure
if: failure() && github.event_name != 'workflow_run'
uses: ./.github/actions/e2e/slack/send-message
with:
message: ":alert: image canary failure (https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}) @channel"
url: ${{ secrets.SLACK_WEBHOOK_URL }}