From 3f4898db435021b5c93d4ef6f77e662331cc18c0 Mon Sep 17 00:00:00 2001 From: Tim Myers Date: Wed, 22 Feb 2023 14:23:02 -0700 Subject: [PATCH] fix: apprunner image updates (#43) --- .github/workflows/release.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1d5a56b..6476843 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -77,6 +77,14 @@ jobs: semantic_version: ${{ env.SEMANTIC_VERSION }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - name: Trigger apprunner deployment + - name: Deploy to App Runner run: | - aws apprunner start-deployment --service-arn ${{ secrets.APPRUNNER_SERVICE_ARN }} + cat << EOF > new_image.yaml + ServiceArn: ${{ secrets.APPRUNNER_SERVICE_ARN }} + SourceConfiguration: + ImageRepository: + ImageIdentifier: public.ecr.aws/s5k1g2u8/infrakit:${{ steps.semantic.outputs.new_release_version }} + ImageRepositoryType: ECR_PUBLIC + EOF + aws apprunner update-service --cli-input-yaml file://new_image.yaml + \ No newline at end of file