Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
168 changes: 84 additions & 84 deletions .github/workflows/release-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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) }}
Expand Down
Loading