mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
wrong account id
This commit is contained in:
parent
c924306dcc
commit
a225e248bb
2 changed files with 5 additions and 4 deletions
8
.github/workflows/_build_image.yml
vendored
8
.github/workflows/_build_image.yml
vendored
|
|
@ -29,8 +29,6 @@ on:
|
|||
required: true
|
||||
AWS_SECRET_ACCESS_KEY:
|
||||
required: true
|
||||
AWS_ACCOUNT_ID:
|
||||
required: true
|
||||
AWS_REGION:
|
||||
required: true
|
||||
|
||||
|
|
@ -56,7 +54,11 @@ jobs:
|
|||
- name: Build & push image
|
||||
run: |
|
||||
IMAGE_TAG=${GITHUB_SHA}
|
||||
IMAGE_URI=${{ secrets.AWS_ACCOUNT_ID }}.dkr.ecr.${{ secrets.AWS_REGION }}.amazonaws.com/${{ inputs.ecr_repo }}:${IMAGE_TAG}
|
||||
AWS_ACCOUNT_ID=$(aws sts get-caller-identity --query Account --output text)
|
||||
|
||||
IMAGE_URI=${AWS_ACCOUNT_ID}.dkr.ecr.${{ secrets.AWS_REGION }}.amazonaws.com/${{ inputs.ecr_repo }}:${IMAGE_TAG}
|
||||
|
||||
echo "Using IMAGE_URI=$IMAGE_URI"
|
||||
|
||||
docker build \
|
||||
-f ${{ inputs.dockerfile_path }} \
|
||||
|
|
|
|||
1
.github/workflows/deploy_terraform.yml
vendored
1
.github/workflows/deploy_terraform.yml
vendored
|
|
@ -81,7 +81,6 @@ jobs:
|
|||
secrets:
|
||||
AWS_ACCESS_KEY_ID: ${{ secrets.DEV_AWS_ACCESS_KEY_ID }}
|
||||
AWS_SECRET_ACCESS_KEY: ${{ secrets.DEV_AWS_SECRET_ACCESS_KEY }}
|
||||
AWS_ACCOUNT_ID: ${{ secrets.DEV_AWS_ACCOUNT_ID }}
|
||||
AWS_REGION: ${{ secrets.DEV_AWS_REGION }}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue