Bump lambda/python from f5308d1
to e0eed1c
(#286)
#18
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Release | |
on: | |
push: | |
tags: | |
- "*" | |
permissions: {} | |
jobs: | |
release: | |
name: Release | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
id-token: write | |
packages: write | |
steps: | |
- name: Checkout | |
id: checkout | |
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 | |
- name: Install cosign | |
id: install_cosign | |
uses: sigstore/cosign-installer@dc72c7d5c4d10cd6bcb8cf6e3fd625a9e5e537da # v3.7.0 | |
- name: Configure AWS Credentials | |
id: configure_aws_credentials | |
uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 # v4.0.2 | |
with: | |
aws-region: eu-west-2 | |
role-to-assume: arn:aws:iam::730335344807:role/modernisation-platform-oidc-cicd | |
- name: Login to Amazon ECR | |
id: login_ecr | |
uses: aws-actions/amazon-ecr-login@062b18b96a7aff071d4dc91bc00c4c1a7945b076 | |
with: | |
registries: 374269020027 | |
- name: Build and Push | |
id: build_and_push | |
uses: docker/build-push-action@4f58ea79222b3b9dc2c8bbdd6debcef730109a75 # v6.9.0 | |
with: | |
push: true | |
tags: 374269020027.dkr.ecr.eu-west-2.amazonaws.com/analytical-platform-ingestion-notify:${{ github.ref_name }} | |
- name: Sign | |
id: sign | |
shell: bash | |
run: | | |
cosign sign --yes 374269020027.dkr.ecr.eu-west-2.amazonaws.com/analytical-platform-ingestion-notify@${{ steps.build_and_push.outputs.digest }} | |
- name: Verify | |
id: verify | |
run: | | |
cosign verify \ | |
--certificate-oidc-issuer=https://token.actions.githubusercontent.com \ | |
--certificate-identity=https://github.com/ministryofjustice/analytical-platform-ingestion-notify/.github/workflows/release.yml@refs/tags/${{ github.ref_name }} \ | |
374269020027.dkr.ecr.eu-west-2.amazonaws.com/analytical-platform-ingestion-notify@${{ steps.build_and_push.outputs.digest }} |