Skip to content

Commit 308ef5f

Browse files
committed
Update github actions for new ECR
1 parent 379b76d commit 308ef5f

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

.github/workflows/actions.yaml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -48,17 +48,15 @@ jobs:
4848
echo $IMAGE_TAG
4949
echo "IMAGE_TAG=$IMAGE_TAG" >> "$GITHUB_OUTPUT"
5050
51-
aws-ecr-build:
52-
name: Build ECR image
53-
needs: get-tag-name
54-
uses: EO-DataHub/github-actions/.github/workflows/docker-image-to-aws-ecr.yaml@main
51+
publish:
52+
name: Build and push Docker image
53+
needs: [get-tag-name]
54+
uses: EO-DataHub/github-actions/.github/workflows/ecr-publish.yaml@main
5555
with:
56-
image_name: resource-catalogue-fastapi
56+
image_name: ${{ vars.IMAGE_NAME }}
5757
image_tag: ${{ needs.get-tag-name.outputs.image_tag }}
58+
aws_role_arn: ${{ vars.AWS_ROLE_ARN }}
59+
aws_ecr_alias: ${{ vars.AWS_ECR_ALIAS }}
5860
permissions:
5961
id-token: write
6062
contents: read
61-
secrets:
62-
AWS_ACCOUNT_ID: ${{ secrets.AWS_ACCOUNT_ID }}
63-
AWS_ECR: ${{ secrets.AWS_ECR }}
64-
AWS_REGION: ${{ secrets.AWS_REGION }}

0 commit comments

Comments
 (0)