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 }}