Skip to content

Update azure/docker-login action to docker/login-action (#129) #1091

Update azure/docker-login action to docker/login-action (#129)

Update azure/docker-login action to docker/login-action (#129) #1091

name: Test Attestation
permissions:
id-token: write
contents: read
on:
workflow_call:
inputs:
sidecar_registry:
description: "The registry to get the image from"
required: true
default: http://confidentialsidecars.azurecr.io
type: string
attestation-image:
description: "The image of the Attestation sidecar to use"
required: false
default: "attestation:main"
type: string
workflow_dispatch:
inputs:
sidecar_registry:
description: "The registry to get the image from"
required: true
type: choice
options:
- http://confidentialsidecars.azurecr.io
attestation-image:
description: "The image of the Attestation sidecar to use"
required: false
default: "attestation:main"
type: string
push:
branches:
- main
paths:
- .github/workflows/**
- infra/**
- examples/attestation/**
pull_request:
branches:
- main
paths:
- .github/workflows/**
- infra/**
- examples/attestation/**
merge_group:
branches:
- main
schedule:
- cron: "0 7 * * *"
jobs:
resolve-image:
name: Resolve Sidecar Image
runs-on: ubuntu-latest
outputs:
manifest-modifiers: ${{ steps.resolve-image.outputs.manifest-modifiers }}
steps:
- name: Define Image to Use
id: resolve-image
env:
SIDECAR_REGISTRY: ${{ inputs.sidecar_registry }}
ATTESTATION_SIDECAR_IMAGE: ${{ inputs.attestation-image }}
run: |
if [ -z "$SIDECAR_REGISTRY" ]; then
SIDECAR_REGISTRY="http://confidentialsidecars.azurecr.io"
fi
if [ -z "$ATTESTATION_SIDECAR_IMAGE" ]; then
ATTESTATION_SIDECAR_IMAGE="attestation:main"
fi
echo "manifest-modifiers=ATTESTATION_SIDECAR_IMAGE=$SIDECAR_REGISTRY/$ATTESTATION_SIDECAR_IMAGE" >> $GITHUB_OUTPUT
attestation:
name: Attestation
uses: ./.github/workflows/test_example.yml
needs: resolve-image
secrets: inherit
with:
example-name: attestation
manifest-modifiers: ${{ needs.resolve-image.outputs.manifest-modifiers }}