fix(ephemeral): fix ephemeral builds in PR (#27056)

This commit is contained in:
Maxime Beauchemin 2024-02-08 13:54:19 -08:00 committed by GitHub
parent fd06ff3745
commit 3700326c35
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 2 deletions

View File

@ -122,7 +122,10 @@ jobs:
- name: Build ephemeral env image
run: |
./scripts/build_docker.py "ci" "pull_request"
./scripts/build_docker.py \
"ci" \
"pull_request" \
--build_context_ref ${{ github.event.issue.number }}
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v4
@ -141,7 +144,7 @@ jobs:
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
ECR_REPOSITORY: superset-ci
SHA: ${{ steps.get-sha.outputs.sha }}
IMAGE_TAG: pr-${{ github.event.issue.number }}-ci
IMAGE_TAG: ${{ steps.get-sha.outputs.sha }}-ci
run: |
docker tag $SHA $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
docker tag $SHA $ECR_REGISTRY/$ECR_REPOSITORY:$SHA