From 7dfd13178dce7cff654d3793cf4489b62f71aed1 Mon Sep 17 00:00:00 2001 From: Steve Liu Date: Fri, 24 Apr 2026 13:57:51 -0700 Subject: [PATCH] Revert "Rerun lambda layer release (#717)" This reverts commit 20e223ed94c0ac6e16f5de59a3313af95a6638a8. --- .github/workflows/release-build.yml | 168 ++++++++++++++-------------- 1 file changed, 84 insertions(+), 84 deletions(-) diff --git a/.github/workflows/release-build.yml b/.github/workflows/release-build.yml index 705eb2b1a..7784a0f65 100644 --- a/.github/workflows/release-build.yml +++ b/.github/workflows/release-build.yml @@ -94,93 +94,93 @@ jobs: echo ${MATRIX} echo "aws_regions_json=${MATRIX}" >> $GITHUB_OUTPUT - # publish-sdk: - # needs: download-artifacts - # runs-on: ubuntu-latest - # steps: - # - name: Checkout Repo @ SHA - ${{ github.sha }} - # uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 #v5.0.0 - # - # - name: Set up Docker Buildx - # uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 #3.11.1 - # - # - name: Configure AWS credentials for private ECR - # uses: aws-actions/configure-aws-credentials@a03048d87541d1d9fcf2ecf528a4a65ba9bd7838 #v5.0.0 - # with: - # role-to-assume: ${{ secrets.AWS_ROLE_ARN_ECR_RELEASE }} - # aws-region: ${{ env.AWS_PRIVATE_ECR_REGION }} - # - # - name: Log in to AWS private ECR - # uses: docker/login-action@184bdaa0721073962dff0199f1fb9940f07167d1 #v3.5.0 - # with: - # registry: ${{ env.RELEASE_PRIVATE_REGISTRY }} - # - # - name: Configure AWS credentials for public ECR - # uses: aws-actions/configure-aws-credentials@a03048d87541d1d9fcf2ecf528a4a65ba9bd7838 #v5.0.0 - # with: - # role-to-assume: ${{ secrets.AWS_ROLE_ARN_ECR_RELEASE }} - # aws-region: ${{ env.AWS_PUBLIC_ECR_REGION }} - # - # - name: Log in to AWS public ECR - # uses: docker/login-action@184bdaa0721073962dff0199f1fb9940f07167d1 #v3.5.0 - # with: - # registry: public.ecr.aws - # - # - name: Download SDK wheel artifact - # uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 #v5.0.0 - # with: - # name: ${{ env.WHEEL_ARTIFACT_NAME }} - # path: dist-pypi - # - # - name: Download SDK source artifact - # uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 #v5.0.0 - # with: - # name: ${{ env.SOURCE_ARTIFACT_NAME }} - # path: dist-pypi - # - # # The step below publishes to testpypi in order to catch any issues - # - name: Publish to TestPyPI - # uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e - # with: - # repository-url: https://test.pypi.org/legacy/ - # attestations: false - # skip-existing: true - # verbose: true - # packages-dir: dist-pypi - # - # # Publish to prod PyPI - # - name: Publish to PyPI - # uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e - # with: - # skip-existing: true - # verbose: true - # packages-dir: dist-pypi - # - # # Publish to public ECR - # - name: Build and push public ECR image - # uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 #v6.18.0 - # with: - # push: true - # context: . - # file: ./Dockerfile - # platforms: linux/amd64,linux/arm64 - # tags: | - # ${{ env.RELEASE_PUBLIC_REPOSITORY }}:v${{ env.VERSION }} - # - # # Publish to private ECR - # - name: Build and push private ECR image - # uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 #v6.18.0 - # with: - # push: true - # context: . - # file: ./Dockerfile - # platforms: linux/amd64,linux/arm64 - # tags: | - # ${{ env.RELEASE_PRIVATE_REPOSITORY }}:v${{ env.VERSION }} + publish-sdk: + needs: download-artifacts + runs-on: ubuntu-latest + steps: + - name: Checkout Repo @ SHA - ${{ github.sha }} + uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 #v5.0.0 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 #3.11.1 + + - name: Configure AWS credentials for private ECR + uses: aws-actions/configure-aws-credentials@a03048d87541d1d9fcf2ecf528a4a65ba9bd7838 #v5.0.0 + with: + role-to-assume: ${{ secrets.AWS_ROLE_ARN_ECR_RELEASE }} + aws-region: ${{ env.AWS_PRIVATE_ECR_REGION }} + + - name: Log in to AWS private ECR + uses: docker/login-action@184bdaa0721073962dff0199f1fb9940f07167d1 #v3.5.0 + with: + registry: ${{ env.RELEASE_PRIVATE_REGISTRY }} + + - name: Configure AWS credentials for public ECR + uses: aws-actions/configure-aws-credentials@a03048d87541d1d9fcf2ecf528a4a65ba9bd7838 #v5.0.0 + with: + role-to-assume: ${{ secrets.AWS_ROLE_ARN_ECR_RELEASE }} + aws-region: ${{ env.AWS_PUBLIC_ECR_REGION }} + + - name: Log in to AWS public ECR + uses: docker/login-action@184bdaa0721073962dff0199f1fb9940f07167d1 #v3.5.0 + with: + registry: public.ecr.aws + + - name: Download SDK wheel artifact + uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 #v5.0.0 + with: + name: ${{ env.WHEEL_ARTIFACT_NAME }} + path: dist-pypi + + - name: Download SDK source artifact + uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 #v5.0.0 + with: + name: ${{ env.SOURCE_ARTIFACT_NAME }} + path: dist-pypi + + # The step below publishes to testpypi in order to catch any issues + - name: Publish to TestPyPI + uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e + with: + repository-url: https://test.pypi.org/legacy/ + attestations: false + skip-existing: true + verbose: true + packages-dir: dist-pypi + + # Publish to prod PyPI + - name: Publish to PyPI + uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e + with: + skip-existing: true + verbose: true + packages-dir: dist-pypi + + # Publish to public ECR + - name: Build and push public ECR image + uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 #v6.18.0 + with: + push: true + context: . + file: ./Dockerfile + platforms: linux/amd64,linux/arm64 + tags: | + ${{ env.RELEASE_PUBLIC_REPOSITORY }}:v${{ env.VERSION }} + + # Publish to private ECR + - name: Build and push private ECR image + uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 #v6.18.0 + with: + push: true + context: . + file: ./Dockerfile + platforms: linux/amd64,linux/arm64 + tags: | + ${{ env.RELEASE_PRIVATE_REPOSITORY }}:v${{ env.VERSION }} publish-layer-prod: runs-on: ubuntu-latest - needs: [download-artifacts] + needs: [download-artifacts, publish-sdk] strategy: matrix: aws_region: ${{ fromJson(needs.download-artifacts.outputs.aws_regions_json) }}