From 396fec663178464b86c88cbe2edacf1dd8750312 Mon Sep 17 00:00:00 2001 From: null-paorodrigues Date: Mon, 3 Aug 2026 17:15:55 -0300 Subject: [PATCH] ci: publish scope image to ecr public on tag --- .github/workflows/publish-image.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/publish-image.yml diff --git a/.github/workflows/publish-image.yml b/.github/workflows/publish-image.yml new file mode 100644 index 0000000..ad21d9a --- /dev/null +++ b/.github/workflows/publish-image.yml @@ -0,0 +1,22 @@ +name: publish-image + +# Publishes the scope image to ECR Public on every semver tag (created by the +# release workflow). Result: public.ecr.aws/nullplatform/scopes/lambda: +on: + push: + tags: + - 'v*' + +permissions: + id-token: write # required for OIDC auth against AWS + contents: read + +jobs: + publish: + uses: nullplatform/actions-nullplatform/.github/workflows/docker-build-push-ecr.yml@main + with: + image_name: scopes/lambda + context: . + tag: ${{ github.ref_name }} + secrets: + aws_role_arn: ${{ secrets.AWS_ROLE_ARN_ECR_PUSH }}